From 3ed86cda7e4db697fa7327fc3709dd667f5d44b9 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 6 Jan 2024 00:03:38 +0100 Subject: fix(hm/pkgs/specific/ytcc/yts): Don't provide the id as one argument --- hm/soispha/pkgs/scripts/specific/ytcc/yts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hm/soispha/pkgs/scripts/specific') 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 -- cgit 1.4.1