Task: Set a specific file path

Put the name in the task file
Sleep time is now 60s
This commit is contained in:
Jeremy Gardais 2015-10-15 10:07:30 +02:00
parent cddac62814
commit d340606744
1 changed files with 3 additions and 5 deletions

View File

@ -5,7 +5,7 @@ TIME=0
DELAY=25
# Task information (name, path, …)
TASK_NAME="${1}"
TASK_PATH="${HOME}/${TASK_NAME}.todo"
TASK_PATH="${HOME}/task.todo"
# Create the task file
if [ ! -f "${TASK_PATH}" ]; then
@ -15,11 +15,9 @@ fi
# Tiny timer
while [ "${TIME}" != "${DELAY}" ]
do
#sleep 60
sleep 1
sleep 60
TIME=$((TIME+1))
# Add some colors
printf '%b' "${TIME}" > "${TASK_PATH}"
printf '%b' "${TASK_NAME}\n${TIME}" > "${TASK_PATH}"
done
exit 0