diff options
-rwxr-xr-x | meetup/gen_dates.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meetup/gen_dates.sh b/meetup/gen_dates.sh index d6880b1..ec53176 100755 --- a/meetup/gen_dates.sh +++ b/meetup/gen_dates.sh @@ -36,6 +36,15 @@ CNT=0 while true; do if [ -n "$DEBUG" ]; then echo -n "check day($TS): "`date --date="@$TS" +"%d.%m.%Y"`; fi + #skip specific date in future + ymd_to_skip="2024-04-01" + ymd=$(date --date=@$TS +"%Y-%m-%d") + if [ $ymd = $ymd_to_skip ]; then + TS=$((TS + (7 * 24 * 3600))) + DOM=`date --date="@$TS" +"%e"` + continue + fi + if [ $DOM -le 7 ] || ([ $DOM -ge 15 ] && [ $DOM -le 21 ]); then if [ $DOM -le 7 ]; then MTYP="Tech/Core Treffen" |