Merge "Allow to run airship cli from any directory"
This commit is contained in:
commit
2f74290f5d
@ -23,6 +23,8 @@ OS_USER_DOMAIN_NAME=${OS_USER_DOMAIN_NAME:-'default'}
|
|||||||
OS_IDENTITY_API_VERSION=${OS_IDENTITY_API_VERSION:-'3'}
|
OS_IDENTITY_API_VERSION=${OS_IDENTITY_API_VERSION:-'3'}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../ >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
|
|
||||||
# Key/value lookups from manifests
|
# Key/value lookups from manifests
|
||||||
manifests_lookup(){
|
manifests_lookup(){
|
||||||
@ -68,7 +70,7 @@ metadata.name '$mdata_name', key path '$key_path'" >&2
|
|||||||
}
|
}
|
||||||
|
|
||||||
versions_lookup() {
|
versions_lookup() {
|
||||||
manifests_lookup 'global/software/config/versions.yaml' \
|
manifests_lookup "${REPO_DIR}/global/software/config/versions.yaml" \
|
||||||
'pegleg/SoftwareVersions/v1' \
|
'pegleg/SoftwareVersions/v1' \
|
||||||
'software-versions' "$1"
|
'software-versions' "$1"
|
||||||
IMAGE_URL=$RESULT
|
IMAGE_URL=$RESULT
|
||||||
|
Loading…
Reference in New Issue
Block a user