From 16ad1ee57d47efaeefbc8e331d81ab71dda7946b Mon Sep 17 00:00:00 2001 From: DonRichards Date: Wed, 25 Oct 2023 10:57:54 -0400 Subject: [PATCH] Add more feedback and allow for double quotes or lack there of --- temp_migrate_fix.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/temp_migrate_fix.sh b/temp_migrate_fix.sh index bfe987f7d..d050205dd 100755 --- a/temp_migrate_fix.sh +++ b/temp_migrate_fix.sh @@ -29,8 +29,9 @@ for TITLE in "${TITLES[@]}"; do # Check if NODE_ID is numeric (meaning we found a valid node ID) if [[ $NODE_ID =~ ^[0-9]+$ ]]; then - echo "Replace the collection_object:$TITLE with the Node ID in the file" + echo "Replace the collection_object:$TITLE with the Node ID: $NODE_ID in the file" sed -i "s/,\"collection_object:$TITLE\",/,$NODE_ID,/g" "$FILE_PATH" + sed -i "s/,collection_object:$TITLE,/,$NODE_ID,/g" "$FILE_PATH" else echo "No Node ID found for title: $TITLE" fi