From c1c982ff2b4249a1d510234ce1bea437295992b1 Mon Sep 17 00:00:00 2001 From: BB9z Date: Fri, 19 Jan 2024 23:45:23 +0800 Subject: [PATCH] dot? --- build-ios | 2 +- lib/foundation.sh | 3 +-- lib/xccommand.sh | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/build-ios b/build-ios index e4204e8..f0b60a2 100755 --- a/build-ios +++ b/build-ios @@ -39,7 +39,7 @@ logInfo "[Xcode] Building..." if [[ -n $XC_LOG_FILE ]]; then # logInfo "Log file: $XC_LOG_FILE" prepeareResultFile "$XC_LOG_FILE" - xcCommand build | showProgress || { + xcCommand build || { logError "[Xcode] Build failed:" tail -n 50 "$XC_LOG_FILE" exit 1 diff --git a/lib/foundation.sh b/lib/foundation.sh index 478b261..63dedf3 100644 --- a/lib/foundation.sh +++ b/lib/foundation.sh @@ -45,9 +45,8 @@ showProgress() { dots=0 fi - last_print_time=$current_time - if [[ $dots -lt 80 ]]; then + last_print_time=$current_time printf "." dots+=1 fi diff --git a/lib/xccommand.sh b/lib/xccommand.sh index c8fe066..65e6179 100644 --- a/lib/xccommand.sh +++ b/lib/xccommand.sh @@ -151,7 +151,7 @@ _xcChain3() { if [[ -n "${logParts}" ]]; then _XC_COMMANDS=("|" "${logParts[@]}" "${_XC_COMMANDS[@]}") - _xcChain2 | "${logParts[@]}" + _xcChain2 | "${logParts[@]}" | showProgress else _xcChain2 fi