From e8b0824a12edb7e721f05ae1b04be7a2e4b81301 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 17 Jan 2017 10:29:53 +0100 Subject: [PATCH] =?UTF-8?q?Ensure=20to=20create=20the=20task=20if=20it=20d?= =?UTF-8?q?oesn't=20exist=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pomodorrior | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pomodorrior b/pomodorrior index 2108993..fdb31ed 100755 --- a/pomodorrior +++ b/pomodorrior @@ -35,7 +35,9 @@ fi # If the task doesn't already exists if [ ! "${TASK_ID}" ]; then - printf '%b' "${TASK_NAME} don't exist, create it.\n" + command task add "${TASK_NAME}" + printf '%b' "Task '${TASK_NAME}' created.\n" + TASK_ID=$(task description.is:"${TASK_NAME}" ids) fi ## Working on the task