pomodoro: remove the current task file once completed.

This commit is contained in:
Jeremy Gardais 2015-10-18 13:09:30 +02:00
parent 9050060c45
commit d2928adbdc
1 changed files with 4 additions and 1 deletions

View File

@ -50,7 +50,7 @@ while [ "${TIME}" != "${WORK_TIME}" ]; do
done done
# Write logs # Write logs
printf '%b' "$(date +"%A (%F) $startedTime → %H:%M") $TASK_NAME\n" >> "${LOG_TASK_PATH}" printf '%b' "$(date +"%A (%F) ${startedTime} → %H:%M") ${TASK_NAME}\n" >> "${LOG_TASK_PATH}"
# Start break # Start break
if [ `expr ${num} % 4` -eq 0 ]; then if [ `expr ${num} % 4` -eq 0 ]; then
@ -70,4 +70,7 @@ while [ "${BREAK_TIME}" > 0 ]; do
printf '%b' "${BREAK_MSG}\n${BREAK_TIME}" > "${TASK_PATH}" printf '%b' "${BREAK_MSG}\n${BREAK_TIME}" > "${TASK_PATH}"
done done
# Delete the task file
rm -f "${TASK_PATH}"
exit 0 exit 0