diff options
Diffstat (limited to '')
-rwxr-xr-x | hm/soispha/pkgs/scripts/wrappers/yts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hm/soispha/pkgs/scripts/wrappers/yts b/hm/soispha/pkgs/scripts/wrappers/yts index 3ff8e37a..b5edf52c 100755 --- a/hm/soispha/pkgs/scripts/wrappers/yts +++ b/hm/soispha/pkgs/scripts/wrappers/yts @@ -5,6 +5,11 @@ SHELL_LIBRARY_VERSION="1.10.2" . %SHELL_LIBRARY_PATH TASK_UUID=ce4f9e07-8324-4570-8be6-967955e9271e +cleanup() { + task stop "$TASK_UUID" +} +trap cleanup EXIT + help_text=" # # Commands: @@ -57,5 +62,4 @@ done < "$selection_file" [ "$ids" != "" ] && ytc "$ids"; -task stop "$TASK_UUID" # vim: ft=sh |