@@ -1421,20 +1421,13 @@ function tue-install-ros
14211421 do
14221422 case $i in
14231423 --target-dir=* )
1424- repos_dir=" ${i#* =} "
1425- ;;
1426-
1424+ repos_dir=" ${i#* =} " ;;
14271425 --version=* )
1428- version=" ${i#* =} "
1429- ;;
1430-
1426+ version=" ${i#* =} " ;;
14311427 --sub-dir=* )
1432- sub_dir=" ${i#* =} "
1433- ;;
1434-
1428+ sub_dir=" ${i#* =} " ;;
14351429 * )
1436- tue-install-error " Unknown input variable ${i} "
1437- ;;
1430+ tue-install-error " Unknown input variable ${i} " ;;
14381431 esac
14391432 done
14401433 fi
@@ -1564,38 +1557,31 @@ while test $# -gt 0
15641557do
15651558 case " $1 " in
15661559 --debug)
1567- DEBUG=" true"
1568- ;;
1560+ DEBUG=" true" ;;
15691561 --no-ros-deps)
1570- export TUE_INSTALL_SKIP_ROS_DEPS=" all"
1571- ;;
1562+ export TUE_INSTALL_SKIP_ROS_DEPS=" all" ;;
15721563 --doc-depend)
15731564 [[ " $TUE_INSTALL_SKIP_ROS_DEPS " == " all" ]] && export TUE_INSTALL_SKIP_ROS_DEPS=" normal"
15741565 export TUE_INSTALL_DOC_DEPEND=" true"
15751566 ;;
15761567 --no-doc-depend)
1577- export TUE_INSTALL_DOC_DEPEND=" false"
1578- ;;
1568+ export TUE_INSTALL_DOC_DEPEND=" false" ;;
15791569 --test-depend)
15801570 [[ " $TUE_INSTALL_SKIP_ROS_DEPS " == " all" ]] && export TUE_INSTALL_SKIP_ROS_DEPS=" normal"
15811571 export TUE_INSTALL_TEST_DEPEND=" true"
15821572 ;;
15831573 --no-test-depend)
1584- export TUE_INSTALL_TEST_DEPEND=" false"
1585- ;;
1574+ export TUE_INSTALL_TEST_DEPEND=" false" ;;
15861575 --branch* )
1587- echo " Usage of --branch is deprecated, switch to --try-branch"
1588- ;;&
1576+ echo " Usage of --branch is deprecated, switch to --try-branch" ;;&
15891577 --try-branch* | --branch* )
15901578 # shellcheck disable=SC2001
15911579 BRANCH=" $( echo " $1 " | sed -e ' s/^[^=]*=//g' ) ${BRANCH: + ${BRANCH} } " # Reverse order, so we try last one first
15921580 ;;
15931581 --* )
1594- echo " unknown option $1 "
1595- ;;
1582+ echo " unknown option $1 " ;;
15961583 * )
1597- targets=" ${targets: +${targets} } $1 "
1598- ;;
1584+ targets=" ${targets: +${targets} } $1 " ;;
15991585 esac
16001586 shift
16011587done
0 commit comments