From d702f0b0105f87bc15cd5aa191104574300dc630 Mon Sep 17 00:00:00 2001 From: mrpengy <61027825+mrpengy@users.noreply.github.com> Date: Sun, 2 Apr 2023 15:39:02 -0400 Subject: [PATCH] Update func.sh In function get_recordid awk is complaining of the backsplash escaped double quote ". As this is in a literal single quote block the " need not be escaped. Removed backslash fixes this issue. --- lib/func.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/func.sh b/lib/func.sh index 678f12a..388ad58 100644 --- a/lib/func.sh +++ b/lib/func.sh @@ -120,7 +120,7 @@ function get_recordid() { FOUND=0 - for i in `echo $RECORDS | awk -F, 'BEGIN { RS = ";" } { gsub(/\"/,"") ; print $1 "|" $2 "|" $3 "|" $4 }'` + for i in `echo $RECORDS | awk -F, 'BEGIN { RS = ";" } { gsub(/"/,"") ; print $1 "|" $2 "|" $3 "|" $4 }'` do if [ "$RECORDTYPE" == "MX" ]