mirror of
https://github.com/kuhyx/scripts.git
synced 2026-07-04 15:23:11 +02:00
feat: weekend now starts at 3PM friday lets goo
This commit is contained in:
parent
2a98cb98a2
commit
22c1f987f1
@ -134,7 +134,7 @@ function is_weekday() {
|
|||||||
return 0 # Is weekday
|
return 0 # Is weekday
|
||||||
# Friday before 4PM is weekday, after 4PM is weekend
|
# Friday before 4PM is weekday, after 4PM is weekend
|
||||||
elif [[ $day_of_week -eq 5 ]]; then
|
elif [[ $day_of_week -eq 5 ]]; then
|
||||||
if [[ $hour -lt 16 ]]; then
|
if [[ $hour -lt 15 ]]; then
|
||||||
return 0 # Is weekday (Friday before 4PM)
|
return 0 # Is weekday (Friday before 4PM)
|
||||||
else
|
else
|
||||||
return 1 # Is weekend (Friday after 4PM)
|
return 1 # Is weekend (Friday after 4PM)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user