From ea8cd3252f8d1f44793da758f680279310352b52 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 27 Oct 2015 12:58:18 +0100 Subject: [PATCH] Pomodoro: correct the test for break_time. --- pomodoro.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomodoro.sh b/pomodoro.sh index 7890cce..f7b3446 100755 --- a/pomodoro.sh +++ b/pomodoro.sh @@ -64,7 +64,7 @@ fi BREAK_TIME=${SHORT_BREAK_TIME} printf '%b' "${BREAK_MSG}\n${BREAK_TIME}" > "${TASK_PATH}" -while [ "${BREAK_TIME}" > 0 ]; do +while [ "${BREAK_TIME}" -gt 0 ]; do sleep 60 BREAK_TIME=$((BREAK_TIME-1)) printf '%b' "${BREAK_MSG}\n${BREAK_TIME}" > "${TASK_PATH}"