From bda0db18b19bdd274bc1b1f6a5e31e155d88e00d Mon Sep 17 00:00:00 2001 From: stephane Date: Wed, 27 Jan 2016 09:57:38 -0800 Subject: [PATCH] Better $SCRIPT_HOME $SCRIPT_HOME doesn't work so great when the script is run from the scripts directory as ./test-bifrost.sh. This doesn't affect much at the moment, but improve how we set it so we can more reliably run scripts post directory change to the playbooks' location. Change-Id: I3bdbc151a03df8af8cf2735f039a6733d1b0c044 --- scripts/test-bifrost-build-images.sh | 2 +- scripts/test-bifrost.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test-bifrost-build-images.sh b/scripts/test-bifrost-build-images.sh index d9ea5bcb2..80dad2142 100755 --- a/scripts/test-bifrost-build-images.sh +++ b/scripts/test-bifrost-build-images.sh @@ -8,7 +8,7 @@ set -eux set -o pipefail export PYTHONUNBUFFERED=1 -SCRIPT_HOME=$(dirname $0) +SCRIPT_HOME="$(cd "$(dirname "$0")" && pwd)" BIFROST_HOME=$SCRIPT_HOME/.. # Install Ansible $SCRIPT_HOME/env-setup.sh diff --git a/scripts/test-bifrost.sh b/scripts/test-bifrost.sh index ab42df8e2..79333ec3e 100755 --- a/scripts/test-bifrost.sh +++ b/scripts/test-bifrost.sh @@ -8,7 +8,7 @@ set -eux set -o pipefail export PYTHONUNBUFFERED=1 -SCRIPT_HOME=$(dirname $0) +SCRIPT_HOME="$(cd "$(dirname "$0")" && pwd)" BIFROST_HOME=$SCRIPT_HOME/.. # Install Ansible $SCRIPT_HOME/env-setup.sh