From c7b2548f66f7f15a3458bacd2c32381a3ef380af Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Thu, 7 Mar 2019 09:32:33 -0700 Subject: [PATCH] Fixup pr165 --- scripts/dev-agent.sh | 4 ++-- scripts/dev-docker-agent.sh | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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 \