Remove unnecessary quotes
This commit is contained in:
parent
830414d37c
commit
a46719c608
@ -13,9 +13,9 @@ NAME="${NAME%.*}_${NAME##*.}.DPT"
|
|||||||
JSON="{\"filename\":\"$NAME\",\"dpt\":["
|
JSON="{\"filename\":\"$NAME\",\"dpt\":["
|
||||||
while read LINE
|
while read LINE
|
||||||
do
|
do
|
||||||
JSON+="[\"${LINE%,*}\",\"${LINE#*,}\"], "
|
JSON+="[${LINE%,*},${LINE#*,}],"
|
||||||
done < $1
|
done < $1
|
||||||
JSON=${JSON::-2}
|
JSON=${JSON::-1}
|
||||||
JSON+=']}'
|
JSON+=']}'
|
||||||
|
|
||||||
# Dispatch curl
|
# Dispatch curl
|
||||||
|
Loading…
Reference in New Issue
Block a user