bug fix: snappymail on ubuntu 24

This commit is contained in:
usmannasir
2025-08-31 00:04:51 +05:00
parent c4c853ea41
commit a932613827
2 changed files with 2 additions and 2 deletions

View File

@@ -415,7 +415,7 @@ do
log_error "Command failed after 50 retries: $1"
exit 2
else
$1 && break || {
eval "$1" && break || {
echo -e "\n$1 has failed for $i times\nWait and try again...\n"
log_warning "Command failed, retry $i/50: $1"
# Exponential backoff: 1s, 2s, 4s, 8s, then cap at 10s

View File

@@ -303,7 +303,7 @@ Retry_Command() {
# shellcheck disable=SC2034
for i in {1..50};
do
$1 && break || echo -e "\n$1 has failed for $i times\nWait for 3 seconds and try again...\n"; sleep 3;
eval "$1" && break || echo -e "\n$1 has failed for $i times\nWait for 3 seconds and try again...\n"; sleep 3;
done
}