Update run_azcopy.sh

Added removal of leading '0' for time calculation that was causing issues at early time.
This commit is contained in:
2025-02-21 09:37:13 +00:00
parent 8fb87ef497
commit 8e370e50d3

View File

@@ -38,7 +38,7 @@ echo $$ > "$LOCK_FILE"
# Function to check business hours # Function to check business hours
is_business_hours() { is_business_hours() {
HOUR=$(date +%H) HOUR=$(date +%H | sed 's/^0*//') # Remove leading zeros causing errors at morning times
[[ $HOUR -ge $BUSINESS_HOURS_START && $HOUR -lt $BUSINESS_HOURS_END ]] [[ $HOUR -ge $BUSINESS_HOURS_START && $HOUR -lt $BUSINESS_HOURS_END ]]
} }