diff --git a/scripts/dev-agent.sh b/scripts/dev-agent.sh index 0d0a0d8943..e860519c7d 100755 --- a/scripts/dev-agent.sh +++ b/scripts/dev-agent.sh @@ -1,10 +1,10 @@ #!/bin/bash set -e -. setup-rancher-path.sh - cd $(dirname $0)/.. +. ./scripts/setup-rancher-path.sh + # Prime sudo sudo echo Compiling diff --git a/scripts/dev-docker-agent.sh b/scripts/dev-docker-agent.sh index bdde6d9795..c6d155c80f 100755 --- a/scripts/dev-docker-agent.sh +++ b/scripts/dev-docker-agent.sh @@ -1,8 +1,10 @@ #!/bin/bash - -. setup-rancher-path.sh +set -e cd $(dirname $0)/.. + +. ./scripts/setup-rancher-path.sh + IP=$(ip addr show dev docker0 | grep -w inet | awk '{print $2}' | cut -f1 -d/) docker run \ --read-only \