From ce67e2049b6ac01e7ee88f26fb790147bc3a9a6d Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 6 Jan 2024 00:10:36 +0100 Subject: fix(hm/pkgs/scr/specific/ytcc/yts): Remove out-dated check --- hm/soispha/pkgs/scripts/specific/ytcc/yts | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit 1.4.1