From 257a15d3818bfdb27eef999bf0697731cb187c33 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Fri, 26 Dec 2025 12:35:48 +0000 Subject: [PATCH] chore: auto format code --- lib/core/base.sh | 5 ++++- lib/core/common.sh | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/core/base.sh b/lib/core/base.sh index 8005309..d097cff 100644 --- a/lib/core/base.sh +++ b/lib/core/base.sh @@ -397,7 +397,10 @@ ensure_user_file() { # Convert bytes to human-readable format (e.g., 1.5GB) bytes_to_human() { local bytes="$1" - [[ "$bytes" =~ ^[0-9]+$ ]] || { echo "0B"; return 1; } + [[ "$bytes" =~ ^[0-9]+$ ]] || { + echo "0B" + return 1 + } # GB: >= 1073741824 bytes if ((bytes >= 1073741824)); then diff --git a/lib/core/common.sh b/lib/core/common.sh index b37d42a..5437f17 100755 --- a/lib/core/common.sh +++ b/lib/core/common.sh @@ -45,7 +45,7 @@ update_via_homebrew() { brew update > "$temp_update" 2>&1 & local update_pid=$! - wait $update_pid 2>/dev/null || true # Continue even if brew update fails + wait $update_pid 2> /dev/null || true # Continue even if brew update fails if [[ -t 1 ]]; then stop_inline_spinner @@ -60,7 +60,7 @@ update_via_homebrew() { brew upgrade mole > "$temp_upgrade" 2>&1 & local upgrade_pid=$! - wait $upgrade_pid 2>/dev/null || true # Continue even if brew upgrade fails + wait $upgrade_pid 2> /dev/null || true # Continue even if brew upgrade fails local upgrade_output upgrade_output=$(cat "$temp_upgrade")