From 95b5a4431984d200c07a9ab7c82ca7986ec583af Mon Sep 17 00:00:00 2001 From: AMATH <116212274+amathxbt@users.noreply.github.com> Date: Mon, 27 Apr 2026 08:51:33 -0700 Subject: [PATCH] fix: use elif in progress.sh to prevent printing both hours and days estimates --- progress.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/progress.sh b/progress.sh index 204d9ab..c713b50 100755 --- a/progress.sh +++ b/progress.sh @@ -66,18 +66,15 @@ echo "Calculating time estimates..." MINUTES=$((BEHIND / PER_MIN)) HOURS=$((MINUTES / 60)) -if [ $MINUTES -le 60 ] ; then +if [ $MINUTES -le 60 ]; then echo "Sync will complete in minutes" echo "Minutes until sync completed: $MINUTES" -fi - -if [ $MINUTES -gt 60 ] ; then +elif [ $HOURS -le 24 ]; then echo "Sync will take hours" echo "Hours until sync completed: $HOURS" -fi - -if [ $HOURS -gt 24 ] ; then +else echo "Sync will take days" DAYS=$((HOURS / 24)) echo "Days until sync complete: $DAYS" fi +