diff options
Diffstat (limited to 'version-manifest/src/main/scripts')
-rwxr-xr-x | version-manifest/src/main/scripts/update-oom-image-versions.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/version-manifest/src/main/scripts/update-oom-image-versions.sh b/version-manifest/src/main/scripts/update-oom-image-versions.sh index 6342857c7..b17b46dd1 100755 --- a/version-manifest/src/main/scripts/update-oom-image-versions.sh +++ b/version-manifest/src/main/scripts/update-oom-image-versions.sh @@ -1,5 +1,18 @@ #!/bin/bash +realpath() { + OURPWD="$PWD" + cd "$(dirname "$1")" + LINK=$(readlink "$(basename "$1")") + while [ "$LINK" ]; do + cd "$(dirname "$LINK")" + LINK=$(readlink "$(basename "$1")") + done + REALPATH="$PWD/$(basename "$1")" + cd "$OURPWD" + echo "$REALPATH" +} + if [ "$#" -ne 2 ]; then echo This script updates OOM helm charts to use versions in docker-manifest.csv echo "$0 <docker-manifest.csv> <oom repo directory>" |