aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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