Skip to content

Commit

Permalink
update run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleyboyuyang committed Mar 30, 2024
1 parent cb280cd commit 5e57863
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# make and enter build directory
mkdir -p build
cd build
cd build || exit

# build project
cmake ..
Expand All @@ -24,7 +24,7 @@ if [ $? -eq 0 ]; then
./inquiry &

# trap SIGINT and terminate all processes
trap "kill $server_pid; pkill -P $$; exit" SIGINT
trap 'kill $server_pid; pkill -P $$; exit' SIGINT

# you can press any key to terminate all processes
read -p "Press any key to terminate all processes." -n 1 -r
Expand All @@ -41,4 +41,4 @@ if [ $? -eq 0 ]; then

else
echo "Build failed"
fi
fi

0 comments on commit 5e57863

Please sign in to comment.