Attempt to fix script, by adjusting syntax.

This commit is contained in:
Out Of Ideas 2023-12-01 14:06:00 -06:00
parent ec96fd3728
commit 257980080a
1 changed files with 10 additions and 7 deletions

View File

@ -14,6 +14,9 @@
# 01/12/2023 Out Of Ideas Initial resease; script not #
# worknig. #
# #
# 01/12/2023 Out Of Ideas Attempt to fix script, by #
# adjusting `at` syntax. #
# #
############################################################
############################################################
############################################################
@ -165,7 +168,7 @@ SECOND="1000"
# Habits
# HABIT TIME LENGTH Message
# PRACTICE=("09:00" "$HOUR" "Practice")
PRACTICE_GUITAR=("09:00" "$HOUR" "Practice Guitar")
PRACTICE_GUITAR=("13:56" "$HOUR" "Practice Guitar")
HABBITS=(PRACTICE_GUITAR)
# Unset variables
@ -207,11 +210,11 @@ for (( i=0; i<$len; i++ ))
do
if [ $VERBOSE ]
then
echo "at <<< ${HABITS[i][0]} notify-send -t \"Habit Tracker\" \"${HABITS[i][1]}\" ${HABITS[i][2]}"
at ${HABITS[i][0]} <<< notify-send -t "Habit Tracker" "${HABITS[i][1]}" ${HABITS[i][2]}
echo "echo 'notify-send -t \"Habit Tracker\" \"${HABITS[i][2]}\"' | at ${HABITS[i][0]}"
echo "notify-send -t \"Habit Tracker\" \"${HABITS[i][2]}\"" | at ${HABITS[i][0]}
else
at ${HABITS[i][0]} <<< notify-send -t "Habit Tracker" "${HABITS[i][1]}" ${HABITS[i][2]}
fi
else
echo "notify-send -t \"Habit Tracker\" \"${HABITS[i][2]}\"" | at ${HABITS[i][0]}
fi
done