From 357f8373cd2de624f3687d999843af90a4aa1b77 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 3 Mar 2022 09:27:36 +0100 Subject: [PATCH] Remove temp file when stop a task --- rofi-task.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rofi-task.sh b/rofi-task.sh index d7185fd..aac1ca2 100755 --- a/rofi-task.sh +++ b/rofi-task.sh @@ -118,7 +118,9 @@ ID var: ${RED}${ID}${RESET}." pkill --full -- "sleep 60" ## Stop the selected task and exit - task "${ID}" stop >/dev/null && exit 0 + task "${ID}" stop >/dev/null \ + && rm --force -- ~/.task/.current.task \ + && exit 0 } # }}} select_task() { # {{{