mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-26 03:47:22 +01:00
feat: friday starts at 14:00
This commit is contained in:
parent
82c4a79f3d
commit
d59b15f806
@ -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 15 ]]; then
|
if [[ $hour -lt 14 ]]; 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