From 406b1c86b0f8095ac95ffbe383d88eb39740c9b6 Mon Sep 17 00:00:00 2001 From: Joe Tretter Date: Sat, 13 Aug 2022 14:25:56 -0500 Subject: [PATCH] Fix quoting --- ytdl.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ytdl.sh b/ytdl.sh index 0d71241..db0b990 100644 --- a/ytdl.sh +++ b/ytdl.sh @@ -1,6 +1,5 @@ #!/bin/bash -echo $1 >> /tmp/dlX -#/usr/bin/stdbuf -i0 -o0 -e0 /usr/local/bin/youtube-dl --newline -f 160 $1 2>&1 | cut -c 11-13 | while read x; do echo ${x}% $(seq 1 2094 | xargs /usr/bin/stdbuf -i0 -o0 -e0 echo); done -/usr/bin/stdbuf -i0 -o0 -e0 /usr/local/bin/youtube-dl --newline -f 160 $1 2>&1 | /usr/bin/stdbuf -i0 -o0 -e0 cut -c 11-14 | while read x +set -x +/usr/local/bin/youtube-dl --newline -f 160 "${1}" 2>&1 | /usr/bin/stdbuf -i0 -o0 -e0 cut -c 11-14 | while read x do /usr/bin/stdbuf -i0 -o0 -e0 printf "%3d%% .................................................................................................... \r\n" ${x} done