cleaned up the readme and made the program just a little easier to configure

This commit is contained in:
2022-02-03 18:26:50 -05:00
parent 346db2ee55
commit 2edc99873a
2 changed files with 40 additions and 14 deletions

View File

@ -61,7 +61,10 @@ do
dayOfWeek="$(date -v+"$1"m -v1d -v+"$PLACEINMONTH"d +%a)"
#############render weekly things
############# render weekly things
# SUNDAYS
#every sunday
if [ "$dayOfWeek" = "Sun" ]; then echo "water plants">> $calendarFile; sunday=$(($sunday+1)); fi
#second sunday
@ -71,18 +74,39 @@ do
#last sunday
if [ "$(date -v1d -v+"$tooFarNum"m -v-1d -v-sun +%a-%b-%d)" = "$(date -v1d -v+"$1"m -v+"$PLACEINMONTH"d +%a-%b-%d)" ] && [ "$dayOfWeek" = "Sun" ]; then echo "last sunday of the month potluck">> $calendarFile; fi
# MONDAYS
#every monday
if [ "$dayOfWeek" = "Mon" ]; then echo "contact Bob">> $calendarFile; echo "put recycling out">> $calendarFile; monday=$(($monday+1)); fi
# TUESDAYS
#every tuesday
if [ "$dayOfWeek" = "Tue" ]; then tuesday=$(($tuesday+1)); fi
# WEDNESDAYS
#every wednesday
if [ "$dayOfWeek" = "Wed" ]; then wednesday=$(($wednesday+1)); fi
# THURSDAYS
#every thursday
if [ "$dayOfWeek" = "Thu" ]; then echo "open hours at Lab B">> $calendarFile; thursday=$(($thursday+1)); fi
# FRIDAYS
#every friday
if [ "$dayOfWeek" = "Fri" ]; then friday=$(($friday+1)); fi
# SATURDAYS
#every saturday
if [ "$dayOfWeek" = "Sat" ]; then saturday=$(($saturday+1)); fi