1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-11 00:44:18 +00:00

chore: auto format code

This commit is contained in:
Tw93
2025-12-26 12:35:48 +00:00
parent dbdb3d896d
commit 257a15d381
2 changed files with 6 additions and 3 deletions

View File

@@ -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