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:
parent
ea5a653064
commit
bda0db18b1
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user