pomodoro: remove the current task file once completed.
This commit is contained in:
		
							parent
							
								
									9050060c45
								
							
						
					
					
						commit
						d2928adbdc
					
				|  | @ -50,7 +50,7 @@ while [ "${TIME}" != "${WORK_TIME}" ]; do | |||
| done | ||||
| 
 | ||||
| # 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 | ||||
| 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}" | ||||
| done | ||||
| 
 | ||||
| # Delete the task file | ||||
| rm -f "${TASK_PATH}" | ||||
| 
 | ||||
| exit 0 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue