Pomodoro: correct the test for break_time.

This commit is contained in:
Jeremy Gardais 2015-10-27 12:58:18 +01:00
parent 3886bc7731
commit ea8cd3252f
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ fi
BREAK_TIME=${SHORT_BREAK_TIME} BREAK_TIME=${SHORT_BREAK_TIME}
printf '%b' "${BREAK_MSG}\n${BREAK_TIME}" > "${TASK_PATH}" printf '%b' "${BREAK_MSG}\n${BREAK_TIME}" > "${TASK_PATH}"
while [ "${BREAK_TIME}" > 0 ]; do while [ "${BREAK_TIME}" -gt 0 ]; do
sleep 60 sleep 60
BREAK_TIME=$((BREAK_TIME-1)) BREAK_TIME=$((BREAK_TIME-1))
printf '%b' "${BREAK_MSG}\n${BREAK_TIME}" > "${TASK_PATH}" printf '%b' "${BREAK_MSG}\n${BREAK_TIME}" > "${TASK_PATH}"