diff options
author | Soispha <soispha@vhack.eu> | 2024-01-06 00:03:38 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2024-01-06 00:06:23 +0100 |
commit | 3ed86cda7e4db697fa7327fc3709dd667f5d44b9 (patch) | |
tree | b0a24c0391c4d7099c6a0f3509d17b8a9272a291 /hm/soispha/pkgs/scripts/specific | |
parent | fix(sys/nixpkgs/pkgs/ytc): Wrap program (diff) | |
download | nixos-config-3ed86cda7e4db697fa7327fc3709dd667f5d44b9.zip |
fix(hm/pkgs/specific/ytcc/yts): Don't provide the id as one argument
Diffstat (limited to 'hm/soispha/pkgs/scripts/specific')
-rwxr-xr-x | hm/soispha/pkgs/scripts/specific/ytcc/yts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hm/soispha/pkgs/scripts/specific/ytcc/yts b/hm/soispha/pkgs/scripts/specific/ytcc/yts index b81915c1..c6826d2c 100755 --- a/hm/soispha/pkgs/scripts/specific/ytcc/yts +++ b/hm/soispha/pkgs/scripts/specific/ytcc/yts @@ -50,9 +50,9 @@ while read -r line; do "watch" | "w") id="$(echo "$line" | awk '{print $2}')"; if [ "$is_first" = "true" ]; then - ids="$id"; + set -- "$id" else - ids="$ids $id"; + set -- "$@" "$id" fi dbg "Added to be watched: $id" is_first=false @@ -60,6 +60,6 @@ while read -r line; do esac done < "$selection_file" -[ "$ids" != "" ] && ytc "id" "$ids"; +[ "$ids" != "" ] && ytc "id" "$@"; # vim: ft=sh |