Remove temp file when stop a task
This commit is contained in:
parent
a05eeabcb6
commit
357f8373cd
|
@ -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() { # {{{
|
||||
|
|
Loading…
Reference in New Issue