Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaCensi committed Jan 7, 2018
1 parent b715918 commit ca814d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion environment.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# New policy: DUCKIETOWN_ROOT is implicit in the choice of running this script

[ -z "$HOSTNAME" ] && { echo "\n\nThe variable HOSTNAME is not set. I need this info for setting up ROS. \n\n\n\n"; return 2; }
[ -z "$HOSTNAME" ] && { echo -e "\n\nThe variable HOSTNAME is not set. I need this info for setting up ROS. \n\n\n\n"; return 2; }

# Do not compile Lisp messages
# XXX: not sure if this is the place to put this.
Expand Down
2 changes: 1 addition & 1 deletion set_ros_master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ $# -gt 0 ]; then
# provided a hostname, use it as ROS_MASTER_URI
export ROS_MASTER_URI=http://$1.local:11311/
else
[ -z "$HOSTNAME" ] && { echo "\n\nThe variable HOSTNAME is not set. I need this info for setting up ROS. \n\n\n\n"; return 2 }
[ -z "$HOSTNAME" ] && { echo -e "\n\nThe variable HOSTNAME is not set. I need this info for setting up ROS. \n\n\n\n"; return 2; }
echo "No hostname provided. Using $HOSTNAME."
export ROS_MASTER_URI=http://$HOSTNAME.local:11311/
fi
Expand Down

0 comments on commit ca814d1

Please sign in to comment.