Skip to content

Commit

Permalink
Merge pull request #1487 from furushchev/ip2
Browse files Browse the repository at this point in the history
[jsk_tools][99.jsk_tools.sh] fix: issue #1472
  • Loading branch information
k-okada authored Nov 28, 2016
2 parents f63353b + 804b2d6 commit 2805e7f
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 2805e7f

Please sign in to comment.