about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xhm/soispha/pkgs/scripts/specific/ytcc/yts3
1 files changed, 1 insertions, 2 deletions
diff --git a/hm/soispha/pkgs/scripts/specific/ytcc/yts b/hm/soispha/pkgs/scripts/specific/ytcc/yts
index c6826d2c..f2e6ef35 100755
--- a/hm/soispha/pkgs/scripts/specific/ytcc/yts
+++ b/hm/soispha/pkgs/scripts/specific/ytcc/yts
@@ -31,7 +31,6 @@ echo "$help_text" >> "$selection_file";
 
 $EDITOR "$selection_file"
 
-ids=""
 is_first=true;
 while read -r line; do
     cmd="$(echo "$line" | awk '{print $1}')";
@@ -60,6 +59,6 @@ while read -r line; do
     esac
 done < "$selection_file"
 
-[ "$ids" != "" ] && ytc "id" "$@";
+[ -n "$1" ] && ytc "id" "$@";
 
 # vim: ft=sh