Created
May 4, 2021 19:04
-
-
Save PeterMitrano/9b523be7967be6f53df1ad4530d7535b to your computer and use it in GitHub Desktop.
choose_ws.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PS3='Choose a workspace type: ' | |
options=("default" "debug") | |
select opt in "${options[@]}" | |
do | |
case $opt in | |
"default") | |
source /home/peter/catkin_ws/devel/setup.bash | |
cd /home/peter/catkin_ws/ | |
catkin profile set default | |
break | |
;; | |
"debug") | |
source /home/peter/catkin_ws/devel_debug/setup.bash | |
cd /home/peter/catkin_ws/ | |
catkin profile set debug | |
break | |
;; | |
*) echo "invalid option $REPLY";; | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment