about summary refs log tree commit diff stats
path: root/hm/soispha/pkgs
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-01-06 00:03:38 +0100
committerSoispha <soispha@vhack.eu>2024-01-06 00:06:23 +0100
commit3ed86cda7e4db697fa7327fc3709dd667f5d44b9 (patch)
treeb0a24c0391c4d7099c6a0f3509d17b8a9272a291 /hm/soispha/pkgs
parentfix(sys/nixpkgs/pkgs/ytc): Wrap program (diff)
downloadnixos-config-3ed86cda7e4db697fa7327fc3709dd667f5d44b9.zip
fix(hm/pkgs/specific/ytcc/yts): Don't provide the id as one argument
Diffstat (limited to 'hm/soispha/pkgs')
-rwxr-xr-xhm/soispha/pkgs/scripts/specific/ytcc/yts6
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