summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabor <gabor@g>2024-03-29 00:11:08 +0100
committergabor <gabor@g>2024-03-29 00:11:08 +0100
commitc698140eac61ff1beedae57d50330c1bb847fc09 (patch)
tree50a29565deb3868724aaa113a04fabdcc9b1f68e
parentbc9d470ca4e636811b2d933187485229a2aae038 (diff)
gen_dates.sh: implement skip date in future + skip 2024-04-01
-rwxr-xr-xmeetup/gen_dates.sh9
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&nbsp;Treffen"