Remove unnecessary quotes
This commit is contained in:
parent
830414d37c
commit
a46719c608
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user