diff options
author | Soispha <soispha@vhack.eu> | 2024-01-06 00:10:36 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2024-01-06 00:10:36 +0100 |
commit | ce67e2049b6ac01e7ee88f26fb790147bc3a9a6d (patch) | |
tree | 48807b580572fe67ffabdd25f357a43dd084b6d2 | |
parent | fix(hm/pkgs/specific/ytcc/yts): Don't provide the id as one argument (diff) | |
download | nixos-config-ce67e2049b6ac01e7ee88f26fb790147bc3a9a6d.tar.gz nixos-config-ce67e2049b6ac01e7ee88f26fb790147bc3a9a6d.zip |
fix(hm/pkgs/scr/specific/ytcc/yts): Remove out-dated check
-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 |