Fix for Windows (#2)
Windows sqlite3.exe generates file in dos format and the extra `\r` causes wrong curl command and deletion failure. Instead of `cat` lines, use `sed` to trim the `\r`.
This commit is contained in:
parent
6a3a701a6f
commit
b5010d5759
2
jnrmor
2
jnrmor
|
|
@ -280,7 +280,7 @@ if [ "$fflag" != "1" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for id in `cat $TMPFILE`
|
for id in `sed 's/\s\+$//' $TMPFILE`
|
||||||
do
|
do
|
||||||
curlCMD="curl -s -X DELETE http://localhost:${CLIPPER_PORT}/resources/${id}?token=${CLIPPER_TOKEN}"
|
curlCMD="curl -s -X DELETE http://localhost:${CLIPPER_PORT}/resources/${id}?token=${CLIPPER_TOKEN}"
|
||||||
debug "$curlCMD"
|
debug "$curlCMD"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue