Skip to content

Commit f7ed31f

Browse files
committed
Added PATH setting to fixEnv
1 parent 5266e83 commit f7ed31f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/fixEnv.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
if [ -z "${TOUR_GUIDE_ROBOT_SOURCE_DIR}" ]; then
22
if [ -z "${HSP_CODE}" ]; then
3+
echo "Setting TOUR_GUIDE_ROBOT_SOURCE_DIR to ~/tour-guide-robot"
34
echo "export TOUR_GUIDE_ROBOT_SOURCE_DIR=~/tour-guide-robot" >> ~/.bashrc
45
else
6+
echo "Setting TOUR_GUIDE_ROBOT_SOURCE_DIR to ${HSP_CODE}/tour-guide-robot"
57
echo "export TOUR_GUIDE_ROBOT_SOURCE_DIR=${HSP_CODE}/tour-guide-robot" >> ~/.bash_profile
68
fi
79
else
@@ -10,10 +12,18 @@ fi
1012

1113
if [ -z "${CER_SIM_ROOT_DIR}" ]; then
1214
if [ -z "${ROBOT_CODE}" ]; then
15+
echo "Setting CER_SIM_ROOT_DIR to ~/robotology/cer-sim"
1316
echo "export CER_SIM_ROOT_DIR=~/robotology/cer-sim" >> ~/.bashrc
1417
else
15-
echo "export CER_SIM_ROOT_DIR=${ROBOT_CODE}/cer-sim" >> ~/.bash_profile
18+
echo "Setting CER_SIM_ROOT_DIR to ${ROBOT_CODE}/cer-sim"
19+
echo "export CER_SIM_ROOT_DIR=${ROBOT_CODE}/cer-sim" >> ~/.bashrc
1620
fi
1721
else
1822
echo "The env is already set to: ${CER_SIM_ROOT_DIR}"
1923
fi
24+
if [[ ":$PATH:" == *":app/headSynchronizer/scripts:"* ]]; then
25+
echo "Your path is correctly set"
26+
else
27+
echo "Your path is missing the path to the joypad scripts. Adding them."
28+
echo "export PATH=\$PATH:${TOUR_GUIDE_ROBOT_SOURCE_DIR}/app/navigation2/scripts:${TOUR_GUIDE_ROBOT_SOURCE_DIR}/app/headSynchronizer/scripts" >> ~/.bashrc
29+
fi

0 commit comments

Comments
 (0)