Skip to content

Commit 79d8a6f

Browse files
style(pre-commit): autofix
1 parent f7337c8 commit 79d8a6f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

docker/tools/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ COPY docker/tools/etc/xstartup /root/.vnc/xstartup
101101
COPY docker/tools/etc/entrypoint.sh /entrypoint.sh
102102
RUN chmod +x /entrypoint.sh && chmod +x /root/.vnc/xstartup
103103
ENTRYPOINT ["/entrypoint.sh"]
104-
CMD ["/bin/bash"]
104+
CMD ["/bin/bash"]

docker/tools/etc/entrypoint.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
configure_vnc() {
44
# Create Openbox application configuration
55
mkdir -p /etc/xdg/openbox
6-
cat > /etc/xdg/openbox/rc.xml << 'EOF'
6+
cat >/etc/xdg/openbox/rc.xml <<'EOF'
77
<?xml version="1.0" encoding="UTF-8"?>
88
<openbox_config xmlns="http://openbox.org/3.4/rc"
99
xmlns:xi="http://www.w3.org/2001/XInclude">
@@ -21,7 +21,7 @@ configure_vnc() {
2121
</openbox_config>
2222
EOF
2323
# Create rviz2 start script
24-
cat > /usr/local/bin/start-rviz2.sh << 'EOF'
24+
cat >/usr/local/bin/start-rviz2.sh <<'EOF'
2525
#!/bin/bash
2626
source /opt/ros/humble/setup.bash
2727
source /opt/autoware/setup.bash
@@ -32,8 +32,8 @@ else
3232
fi
3333
EOF
3434
chmod +x /usr/local/bin/start-rviz2.sh
35-
echo "echo 'Autostart executed at $(date)' >> /tmp/autostart.log" >> /etc/xdg/openbox/autostart
36-
echo "/usr/local/bin/start-rviz2.sh" >> /etc/xdg/openbox/autostart
35+
echo "echo 'Autostart executed at $(date)' >> /tmp/autostart.log" >>/etc/xdg/openbox/autostart
36+
echo "/usr/local/bin/start-rviz2.sh" >>/etc/xdg/openbox/autostart
3737

3838
# Start VNC server with Openbox
3939
echo "Starting VNC server with Openbox..."
@@ -47,7 +47,7 @@ EOF
4747

4848
# Set the DISPLAY variable to match VNC server
4949
echo "Setting DISPLAY to :99"
50-
echo "export DISPLAY=:99" >> ~/.bashrc
50+
echo "export DISPLAY=:99" >>~/.bashrc
5151
sleep 2
5252

5353
# Start NoVNC
@@ -79,4 +79,4 @@ EOF
7979
[ "$VNC_ENABLED" == "true" ] && configure_vnc
8080
source "/opt/ros/$ROS_DISTRO/setup.bash"
8181
source "/opt/autoware/setup.bash"
82-
exec "$@"
82+
exec "$@"

docker/tools/etc/xstartup

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ echo "Starting Openbox window manager..."
1212
openbox-session &
1313

1414
# Keep the session alive
15-
sleep infinity
15+
sleep infinity

0 commit comments

Comments
 (0)