Allow to run airship cli from any directory

Change path to globals from relative to absolute
to be able to run airship cli from any directory.

Change-Id: Ieb81ef6be7dff7fd49c206501035e75c8fd32bbe
This commit is contained in:
Evgeny L 2019-04-23 21:48:27 +00:00
parent d63ff89d60
commit 6b1cc1ad76

View File

@ -26,6 +26,8 @@ OS_USER_DOMAIN_NAME=${OS_USER_DOMAIN_NAME:-'default'}
OS_IDENTITY_API_VERSION=${OS_IDENTITY_API_VERSION:-'3'}
EOF
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../ >/dev/null 2>&1 && pwd )"
# Key/value lookups from manifests
manifests_lookup(){
@ -69,7 +71,7 @@ else:
}
versions_lookup() {
manifests_lookup 'global/software/config/versions.yaml' \
manifests_lookup "${REPO_DIR}/global/software/config/versions.yaml" \
'pegleg/SoftwareVersions/v1' \
'software-versions' "$1"
IMAGE_URL=$RESULT