Skip to content

Commit 1f2e139

Browse files
author
David Conner
committed
use humble branch in create_repo script to set up project
1 parent 5ab950a commit 1f2e139

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

flexbe_widget/bin/create_repo

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,29 @@ else
1616
fi
1717

1818
# Check the desired directory
19-
# Note, someone may want to put this in another folder, so it
19+
# Note, someone may want to put this in another folder, so it
2020
# is not necessarily incorrect to run from different folder
2121
if [[ ":$WORKSPACE_ROOT/src:" != ":$PWD:" ]]; then
2222
echo -e "\e[93mNormally we run this command from the \$WORKSPACE_ROOT/src folder.\e[0m"
2323
echo -e "\e[93m not ${PWD}\e[0m"
2424
while $interactive; do
2525
read -p "Do you want to continue at current location? (yes/no) " yn
26-
case $yn in
27-
yes|Yes|y|Y|YES )
26+
case $yn in
27+
yes|Yes|y|Y|YES )
2828
break;;
29-
no|No|n|N|NO )
29+
no|No|n|N|NO )
3030
while true; do
3131
read -p "Do you want to change to \$WORKSPACE_ROOT/src and continue? (yes/no) " yn
32-
case $yn in
33-
yes|Yes|y|Y|YES )
32+
case $yn in
33+
yes|Yes|y|Y|YES )
3434
cd ${WORKSPACE_ROOT}/src
3535
if [[ ":$WORKSPACE_ROOT/src:" != *":$PWD"* ]]; then
3636
echo "Invalid folder ${PWD} - quit!"
3737
exit
3838
fi
3939
echo "Continuing from ${PWD} ..."
4040
break;;
41-
no|No|n|N|NO )
41+
no|No|n|N|NO )
4242
echo -e "\e[93mChange to appropriate directory and retry!\e[0m";
4343
exit;;
4444
* ) echo invalid response;;
@@ -66,7 +66,7 @@ cd ${name}_behaviors
6666

6767
echo -e "\e[96mSet up for ROS 2 development ...\033[0m"
6868
git fetch
69-
git checkout ros2-devel # use new ROS 2 flexbe_app workspace layout, remove when merged into main
69+
git checkout humble
7070

7171
echo ""
7272
echo -e "\e[96m(3/5) Configuring project template...\033[0m"
@@ -97,7 +97,7 @@ sed -i -e "s/PROJECT_flexbe_behaviors/${name}_flexbe_behaviors/g" \
9797
PROJECT_flexbe_behaviors/setup.py \
9898
PROJECT_flexbe_behaviors/setup.cfg
9999

100-
sed -i -e "s/PROJECT/${name}/g" PROJECT_flexbe_behaviors/bin/copy_behavior
100+
sed -i -e "s/PROJECT/${name}/g" PROJECT_flexbe_behaviors/bin/copy_behavior
101101

102102
mv PROJECT_flexbe_behaviors/PROJECT_flexbe_behaviors PROJECT_flexbe_behaviors/${name}_flexbe_behaviors
103103
mv PROJECT_flexbe_behaviors/resource/PROJECT_flexbe_behaviors PROJECT_flexbe_behaviors/resource/${name}_flexbe_behaviors
@@ -120,8 +120,8 @@ rm -rf .git
120120
while $interactive; do
121121
read -p "(5/5) Do you want to initialize a new Git repository for this project? (yes/no) " yn
122122

123-
case $yn in
124-
yes|Yes|y|Y|YES )
123+
case $yn in
124+
yes|Yes|y|Y|YES )
125125
echo -e "\e[96m(5/5) Initializing new repository...\033[0m";
126126
git init -b main
127127
git add .

0 commit comments

Comments
 (0)