From: Urban Wallasch Date: Sat, 24 Apr 2021 17:43:48 +0000 (+0200) Subject: * Fixed quoting in kaoget.sh. X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=d6f561e28aa41197da281554cd06a0d8a4923514;p=kaotools.git * Fixed quoting in kaoget.sh. --- diff --git a/kaoget.sh b/kaoget.sh index c0f220f..81476cc 100755 --- a/kaoget.sh +++ b/kaoget.sh @@ -100,11 +100,11 @@ case "$URL_FILE" in ;; * ) # Otherwise, just store the URL verbatim. - echo "$URL_FILE" > $TMP_FILE + echo "$URL_FILE" > "$TMP_FILE" ;; esac # Either way, use the new file to read download URLs from. - URL_FILE=$TMP_FILE + URL_FILE="$TMP_FILE" ;; esac @@ -141,5 +141,5 @@ while read URL; do mv "$PNAME" "$NAME" done -[ -n "$TMP_FILE" ] && rm -f $TMP_FILE +[ -n "$TMP_FILE" ] && rm -f "$TMP_FILE" exit 0