Skip to content

Commit

Permalink
[jsk_tools][99.jsk_tools.sh] fix: issue jsk-ros-pkg#1472
Browse files Browse the repository at this point in the history
  • Loading branch information
furushchev committed Nov 23, 2016
1 parent 82e3dd7 commit 804b2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsk_tools/env-hooks/99.jsk_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ rossetip_addr() {
fi
target_host=$target_host_ip
fi
export ROS_IP=$(ip -o -4 route get $target_host | awk "/$target_host/ "'{print $5}')
export ROS_IP=$(ip -o -4 route get $target_host | sed -e 's/^.*src \([0-9.]\+\).*$/\1/g')
export ROS_HOSTNAME=$ROS_IP
}

Expand Down

0 comments on commit 804b2d6

Please sign in to comment.