Attempt to fix script, by adjusting syntax again.

This commit is contained in:
Out Of Ideas 2023-12-01 14:20:21 -06:00
parent f52f165065
commit 51d7d689fd
1 changed files with 8 additions and 4 deletions

View File

@ -20,6 +20,9 @@
# 01/12/2023 Out Of Ideas Adjust comments copied from #
# another script. #
# #
# 01/12/2023 Out Of Ideas Attempt to fix script, by #
# adjusting `at` syntax agian. #
# #
############################################################
############################################################
############################################################
@ -171,7 +174,7 @@ SECOND="1000"
# Habits
# HABIT TIME LENGTH Message
# PRACTICE=("09:00" "$HOUR" "Practice")
PRACTICE_GUITAR=("13:56" "$HOUR" "Practice Guitar")
PRACTICE_GUITAR=("14:19" "$HOUR" "Practice Guitar")
HABBITS=(PRACTICE_GUITAR)
# Unset variables
@ -212,11 +215,12 @@ for (( i=0; i<$len; i++ ))
do
if [ $VERBOSE ]
then
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]}
echo "echo 'DISPLAY=:0 notify-send -t \"Habit Tracker\" \"${HABITS[i][2]}\"' | at ${HABITS[i][0]}"
echo "DISPLAY=:0 notify-send -t \"Habit Tracker\" \"${HABITS[i][2]}\"" | at ${HABITS[i][0]}
else
echo "notify-send -t \"Habit Tracker\" \"${HABITS[i][2]}\"" | at ${HABITS[i][0]}
echo "DISPLAY=:0 notify-send -t \"Habit Tracker\" \"${HABITS[i][2]}\"" | at ${HABITS[i][0]}
fi
done