about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-01-06 00:10:36 +0100
committerSoispha <soispha@vhack.eu>2024-01-06 00:10:36 +0100
commitce67e2049b6ac01e7ee88f26fb790147bc3a9a6d (patch)
tree48807b580572fe67ffabdd25f357a43dd084b6d2
parentfix(hm/pkgs/specific/ytcc/yts): Don't provide the id as one argument (diff)
downloadnixos-config-ce67e2049b6ac01e7ee88f26fb790147bc3a9a6d.tar.gz
nixos-config-ce67e2049b6ac01e7ee88f26fb790147bc3a9a6d.zip
fix(hm/pkgs/scr/specific/ytcc/yts): Remove out-dated check
-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