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
This commit is contained in:
stephane 2016-01-27 09:57:38 -08:00
parent ea5a653064
commit bda0db18b1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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