From da9e441d99141d8b0870bb479185783c940ae321 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 6 Jan 2024 21:23:40 +0100 Subject: fix(hm/pkgs/scr/specific/ytcc/yts): Recognize '' as a command --- hm/soispha/pkgs/scripts/specific/ytcc/yts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'hm') diff --git a/hm/soispha/pkgs/scripts/specific/ytcc/yts b/hm/soispha/pkgs/scripts/specific/ytcc/yts index f2e6ef35..1e8f1c8e 100755 --- a/hm/soispha/pkgs/scripts/specific/ytcc/yts +++ b/hm/soispha/pkgs/scripts/specific/ytcc/yts @@ -11,7 +11,6 @@ cleanup() { trap cleanup EXIT help_text=" -# # Commands: # w, watch = watch id # d, drop = mark id as watched @@ -35,7 +34,10 @@ is_first=true; while read -r line; do cmd="$(echo "$line" | awk '{print $1}')"; case "$cmd" in - "#" ) + "" ) + # An empty line, simply ignore it + ;; + "#") # This is a comment, do nothing here ;; "pick" | "p") @@ -60,5 +62,4 @@ while read -r line; do done < "$selection_file" [ -n "$1" ] && ytc "id" "$@"; - # vim: ft=sh -- cgit 1.4.1