Task: Set a specific file path
Put the name in the task file Sleep time is now 60s
This commit is contained in:
parent
cddac62814
commit
d340606744
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue