Skip to content

Commit

Permalink
add process exit
Browse files Browse the repository at this point in the history
  • Loading branch information
tmori committed Jul 3, 2024
1 parent 5cdd2e8 commit aa5bd14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hakoniwa/drone-app.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
trap 'kill 0' EXIT

if [ $# -ne 2 ]
then
Expand Down Expand Up @@ -28,7 +29,7 @@ else
activate_master
fi

cmake-build/src/hako-px4sim 127.0.0.1 4560 ext
cmake-build/src/hako-px4sim 127.0.0.1 4560 ext &

if [ -z $HAKO_MASTER_DISABLE ]
then
Expand All @@ -41,4 +42,5 @@ else
echo " try executing the 'reset' command to resolve the issue."
fi

wait
exit 0

0 comments on commit aa5bd14

Please sign in to comment.