diff options
Diffstat (limited to '')
-rwxr-xr-x | hm/soispha/pkgs/scripts/specific/ytcc/yts | 3 |
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 |