From 79d8a6fd64efc37fa8ec79394d3e592a207ea76b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 2 Jan 2025 13:47:53 +0000 Subject: [PATCH] style(pre-commit): autofix --- docker/tools/Dockerfile | 2 +- docker/tools/etc/entrypoint.sh | 12 ++++++------ docker/tools/etc/xstartup | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docker/tools/Dockerfile b/docker/tools/Dockerfile index e5f338f2fe8..b6c3d94418c 100644 --- a/docker/tools/Dockerfile +++ b/docker/tools/Dockerfile @@ -101,4 +101,4 @@ COPY docker/tools/etc/xstartup /root/.vnc/xstartup COPY docker/tools/etc/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh && chmod +x /root/.vnc/xstartup ENTRYPOINT ["/entrypoint.sh"] -CMD ["/bin/bash"] \ No newline at end of file +CMD ["/bin/bash"] diff --git a/docker/tools/etc/entrypoint.sh b/docker/tools/etc/entrypoint.sh index fe427822077..ba6f69f2ef5 100644 --- a/docker/tools/etc/entrypoint.sh +++ b/docker/tools/etc/entrypoint.sh @@ -3,7 +3,7 @@ configure_vnc() { # Create Openbox application configuration mkdir -p /etc/xdg/openbox - cat > /etc/xdg/openbox/rc.xml << 'EOF' + cat >/etc/xdg/openbox/rc.xml <<'EOF' @@ -21,7 +21,7 @@ configure_vnc() { EOF # Create rviz2 start script - cat > /usr/local/bin/start-rviz2.sh << 'EOF' + cat >/usr/local/bin/start-rviz2.sh <<'EOF' #!/bin/bash source /opt/ros/humble/setup.bash source /opt/autoware/setup.bash @@ -32,8 +32,8 @@ else fi EOF chmod +x /usr/local/bin/start-rviz2.sh - echo "echo 'Autostart executed at $(date)' >> /tmp/autostart.log" >> /etc/xdg/openbox/autostart - echo "/usr/local/bin/start-rviz2.sh" >> /etc/xdg/openbox/autostart + echo "echo 'Autostart executed at $(date)' >> /tmp/autostart.log" >>/etc/xdg/openbox/autostart + echo "/usr/local/bin/start-rviz2.sh" >>/etc/xdg/openbox/autostart # Start VNC server with Openbox echo "Starting VNC server with Openbox..." @@ -47,7 +47,7 @@ EOF # Set the DISPLAY variable to match VNC server echo "Setting DISPLAY to :99" - echo "export DISPLAY=:99" >> ~/.bashrc + echo "export DISPLAY=:99" >>~/.bashrc sleep 2 # Start NoVNC @@ -79,4 +79,4 @@ EOF [ "$VNC_ENABLED" == "true" ] && configure_vnc source "/opt/ros/$ROS_DISTRO/setup.bash" source "/opt/autoware/setup.bash" -exec "$@" \ No newline at end of file +exec "$@" diff --git a/docker/tools/etc/xstartup b/docker/tools/etc/xstartup index cd435a8d1b9..ba1c8c814ae 100644 --- a/docker/tools/etc/xstartup +++ b/docker/tools/etc/xstartup @@ -12,4 +12,4 @@ echo "Starting Openbox window manager..." openbox-session & # Keep the session alive -sleep infinity \ No newline at end of file +sleep infinity