From c698140eac61ff1beedae57d50330c1bb847fc09 Mon Sep 17 00:00:00 2001 From: gabor Date: Fri, 29 Mar 2024 00:11:08 +0100 Subject: gen_dates.sh: implement skip date in future + skip 2024-04-01 --- meetup/gen_dates.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'meetup') 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" -- cgit v1.2.1