Remove temp file when stop a task

This commit is contained in:
Jeremy Gardais 2022-03-03 09:27:36 +01:00
parent a05eeabcb6
commit 357f8373cd
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,9 @@ ID var: ${RED}${ID}${RESET}."
pkill --full -- "sleep 60" pkill --full -- "sleep 60"
## Stop the selected task and exit ## 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() { # {{{ select_task() { # {{{