Remove unnecessary quotes

This commit is contained in:
Kai S. K. Engelbart 2021-03-12 15:37:22 +01:00
parent 830414d37c
commit a46719c608
Signed by: kske
GPG Key ID: 8BEB13EC5DF7EF13

View File

@ -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