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