about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xhm/soispha/pkgs/scripts/specific/ytcc/yts3
1 files changed, 3 insertions, 0 deletions
diff --git a/hm/soispha/pkgs/scripts/specific/ytcc/yts b/hm/soispha/pkgs/scripts/specific/ytcc/yts
index 60c4e2db..a18e4d51 100755
--- a/hm/soispha/pkgs/scripts/specific/ytcc/yts
+++ b/hm/soispha/pkgs/scripts/specific/ytcc/yts
@@ -91,6 +91,8 @@ table="$(ytcc --output json list "$@" | jq --raw-output 'map("pick \(.id) \(.tit
 
 selection_file="$(mktmp)";
 
+# This is trapped on EXIT
+# shellcheck disable=SC2317
 cleanup() {
     task stop "$TASK_UUID"
 }
@@ -134,4 +136,5 @@ while read -r line; do
 done < "$selection_file"
 
 [ -n "$1" ] && ytc "id" "$@";
+exit 0;
 # vim: ft=sh