Skip to content

Commit

Permalink
Merge pull request RethinkRobotics#161 from RethinkRobotics/baxter_sh…
Browse files Browse the repository at this point in the history
…_update

Updates to baxter.sh per review RethinkRobotics#160
  • Loading branch information
rethink-kmaroney committed Apr 7, 2014
2 parents e9d5563 + c9b0c88 commit 05aeac7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions baxter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ cat <<-EOF > ${tf}
[ -s "\${HOME}"/.bash_profile ] && source "\${HOME}"/.bash_profile
# verify this script is moved out of baxter folder
if [[ "${topdir}" == "baxter" ]]; then
if [[ -e "${topdir}/baxter_sdk/package.xml" ]]; then
echo -ne "EXITING - This script must be moved from the baxter folder \
to the root of your catkin workspace.\n"
exit 1
Expand Down Expand Up @@ -185,7 +185,7 @@ has been built (source /opt/ros/\${ros_version}/setup.sh; catkin_make).\n\
if [ -n "\${__ORIG_PROMPT_COMMAND}" ]; then
eval \${__ORIG_PROMPT_COMMAND}
fi
if ! echo \${PS1} | grep 'baxter' &>/dev/null; then
if ! echo \${PS1} | grep '\[baxter' &>/dev/null; then
export PS1="\[\033[00;33m\][baxter - \
\${ROS_MASTER_URI}]\[\033[00m\] \${PS1}"
fi
Expand All @@ -194,7 +194,7 @@ has been built (source /opt/ros/\${ros_version}/setup.sh; catkin_make).\n\
if [ "\${TERM}" != "dumb" ]; then
export PROMPT_COMMAND=__ros_prompt
__ROS_PROMPT=1
elif ! echo \${PS1} | grep 'baxter' &>/dev/null; then
elif ! echo \${PS1} | grep '\[baxter' &>/dev/null; then
export PS1="[baxter - \${ROS_MASTER_URI}] \${PS1}"
fi
Expand Down

0 comments on commit 05aeac7

Please sign in to comment.