Ensure to create the task if it doesn't exist…

This commit is contained in:
gardouille 2017-01-17 10:29:53 +01:00
parent be8ed4163e
commit e8b0824a12
1 changed files with 3 additions and 1 deletions

View File

@ -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