diff --git a/scripts/yt-api-helper.sh b/scripts/yt-api-helper.sh index ce4b7de..4dd6811 100755 --- a/scripts/yt-api-helper.sh +++ b/scripts/yt-api-helper.sh @@ -404,7 +404,7 @@ hdr_ct='Content-Type: application/json; charset=utf-8' hdr_ua='User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0' # Default to STDOUT if no output file was given -if [ -z "output" ]; then output='-'; fi +if [ -z "$output" ]; then output='-'; fi # Run! curl --compressed -o "$output" -H "$hdr_ct" -H "$hdr_ua" --data "$data" "$url"