fix führende Null

This commit is contained in:
MK
2024-12-03 10:36:38 +01:00
parent b2d47a4cc5
commit ca20300809
+1
View File
@@ -10,6 +10,7 @@ source "$BASE_DIR/functions/restart_service.sh"
function is_within_business_hours() { function is_within_business_hours() {
current_hour=$(date +%H) current_hour=$(date +%H)
current_hour=$((10#$current_hour))
if (( current_hour >= 7 && current_hour < 18 )); then if (( current_hour >= 7 && current_hour < 18 )); then
return 0 # True return 0 # True
else else