From 0cc6135f875ef71b189ccc8e9eb47a462bd9cc69 Mon Sep 17 00:00:00 2001 From: awesomeandrey Date: Thu, 26 Dec 2024 14:42:26 +0200 Subject: [PATCH] Minlopro: Added Shell Check job to CI workflow --- scripts/deploy/post/custom/delete_obsolete_flow_versions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/deploy/post/custom/delete_obsolete_flow_versions.sh b/scripts/deploy/post/custom/delete_obsolete_flow_versions.sh index 2a977801..62385b1c 100644 --- a/scripts/deploy/post/custom/delete_obsolete_flow_versions.sh +++ b/scripts/deploy/post/custom/delete_obsolete_flow_versions.sh @@ -30,11 +30,11 @@ if ! grep -q Id "$csvFileName"; then exit 0 fi -while read c; do +while read -r c; do if [[ "$c" != "Id" && "$c" != "Your query returned no results." ]]; then sf data delete record \ --sobject "Flow" \ - --record-id $c \ + --record-id "$c" \ --target-org "$TARGET_ORG_ALIAS" \ --use-tooling-api fi