Update run_azcopy.sh
Added removal of leading '0' for time calculation that was causing issues at early time.
This commit is contained in:
@@ -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 ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user