From a46719c608274b472eb9aed4bddefe651bb42a94 Mon Sep 17 00:00:00 2001 From: kske Date: Fri, 12 Mar 2021 15:37:22 +0100 Subject: [PATCH] Remove unnecessary quotes --- transfer-data.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transfer-data.sh b/transfer-data.sh index eee3b60..e39a2a7 100755 --- a/transfer-data.sh +++ b/transfer-data.sh @@ -13,9 +13,9 @@ NAME="${NAME%.*}_${NAME##*.}.DPT" JSON="{\"filename\":\"$NAME\",\"dpt\":[" while read LINE do - JSON+="[\"${LINE%,*}\",\"${LINE#*,}\"], " + JSON+="[${LINE%,*},${LINE#*,}]," done < $1 -JSON=${JSON::-2} +JSON=${JSON::-1} JSON+=']}' # Dispatch curl