From dda3ea4b9ad8ae631ca41c090444971cf8544591 Mon Sep 17 00:00:00 2001 From: Jessica Wagantall Date: Wed, 24 Apr 2024 09:42:37 -0700 Subject: [PATCH] Fix: Update bash script syntax to comply with GHA - Update install-deb-rmr.sh script Change-Id: I5c300d555f27017efebcf4424e0dbb643dbc3410 Signed-off-by: Jessica Wagantall --- jjb/shell/install-deb-rmr.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.16.6