mirror of
https://github.com/notwa/rc
synced 2024-11-05 08:19:03 -08:00
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.
This commit is contained in:
parent
9116e418cf
commit
7d895d20a7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue