X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fshell%2Finstall-deb-rmr.sh;fp=jjb%2Fshell%2Finstall-deb-rmr.sh;h=dbe35226cb52c5ea1e9f78326bf75609f2e62e23;hb=dda3ea4b9ad8ae631ca41c090444971cf8544591;hp=ad24aeabcfdca570c3604d35760457b351d81818;hpb=ea137f4f50877ad416552bd3c6c1b3011b7803ac;p=ci-management.git diff --git a/jjb/shell/install-deb-rmr.sh b/jjb/shell/install-deb-rmr.sh index ad24aeab..dbe35226 100644 --- a/jjb/shell/install-deb-rmr.sh +++ b/jjb/shell/install-deb-rmr.sh @@ -28,7 +28,7 @@ echo "---> install-deb-rmr.sh" set -eux version_file=rmr-version.yaml -if [[ -f $version_file ]]; then +if [ -f "$version_file" ]; then # pipeline is less elegant than yq but that requires venv and pip install repo=$(grep "^repo:" "$version_file" | cut -d: -f2 | xargs ) ver=$(grep "^version:" "$version_file" | cut -d: -f2 | xargs) @@ -36,7 +36,7 @@ else echo "File $version_file not found." exit 1 fi -if [[ -z $ver ]]; then +if [ -z "$ver" ]; then echo "Failed to get RMR version string from file $version_file" exit 1 fi