summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshdown <shdownnine@gmail.com>2014-08-30 20:29:48 +0400
committerwm4 <wm4@nowhere>2014-08-30 19:23:41 +0200
commit43d46670288818c39612378755c66289b33a7bfd (patch)
tree6a78f6d828bccadeebeb34da0e8d65cb090a6962
parent948dfe651d9885746a6cf28e2549188bcd4de2b0 (diff)
downloadmpv-43d46670288818c39612378755c66289b33a7bfd.tar.bz2
mpv-43d46670288818c39612378755c66289b33a7bfd.tar.xz
TOOLS/youtube-dl_mpv.sh: disable globbing before expanding $video_url
$video_url can contain a question mark, which can be expanded to a character in an existing file name if globbing is enabled.
-rwxr-xr-xTOOLS/youtube-dl_mpv.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/TOOLS/youtube-dl_mpv.sh b/TOOLS/youtube-dl_mpv.sh
index a29928b8b9..6bfe303705 100755
--- a/TOOLS/youtube-dl_mpv.sh
+++ b/TOOLS/youtube-dl_mpv.sh
@@ -16,6 +16,7 @@ video_url="$(youtube-dl \
--get-url \
"$@")"
+set -f
$MPV \
--cookies \
--cookies-file="$cookies_file" \