Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
Fix: need to apply argument on correct spot.
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Mar 18, 2024
1 parent f985485 commit 958c850
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 6 additions & 1 deletion docker-run-pika-spark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ if [ "$(id -u)" != "0" ]; then
exit 1
fi

if [ "$#" -ne 1 ]; then
echo "Usage: sudo ./docker-run.sh [t07.py | t07_4wd.py | t07_tracked.py]"
exit 1
fi

CAN=can0
CAN_BITRATE=250000
GPIO_CAN0_STBY=160
Expand Down Expand Up @@ -35,4 +40,4 @@ docker run -it \
-u 0 \
--privileged \
--network host \
pika_spark_t07_docker
pika_spark_t07_docker $1
6 changes: 0 additions & 6 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
#!/bin/sh

if [ "$#" -ne 1 ]; then
echo "Usage: sudo ./docker-run.sh [t07.py | t07_4wd.py | t07_tracked.py]"
exit 1
fi

cd /tmp/colcon_ws
. /opt/ros/humble/setup.sh
. install/setup.sh
Expand Down

0 comments on commit 958c850

Please sign in to comment.