From 7d895d20a73d824ad6abf1d5efb7fca769ca9e08 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 5 Mar 2022 17:39:44 -0800 Subject: [PATCH] work around a really obtuse zsh quirk with numeric types i should do this for the rest of the loops in the other files too. --- sh/streamcrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/streamcrap b/sh/streamcrap index 76ab418..9e627ce 100644 --- a/sh/streamcrap +++ b/sh/streamcrap @@ -88,7 +88,7 @@ mpv_watch() { ### @- pushd ~/play >/dev/null local url="$1"; shift - local seen=0 A=() + local seen=0 A=() a= # need to make loop vars local thanks to numeric types in zsh # for a; do [ "$a" = "${a#--ytdl-format}" ] && A+=("$a") || seen=1; done for a; do A+=("$a"); done # bypass ytdl-format checks [ $seen = 0 ] || printf '%s\n' "NOTE: the --ytdl-format flag is temporarily ignored due to throttling issues." >&2