From 47097717705dba732bc614902916619114faa981 Mon Sep 17 00:00:00 2001 From: iVAN <88724353+ivan-hc@users.noreply.github.com> Date: Sun, 1 Sep 2024 23:29:47 +0200 Subject: [PATCH] Update database.am: refactoring --- modules/database.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/database.am b/modules/database.am index 65c0130f2..3bbeba9fd 100644 --- a/modules/database.am +++ b/modules/database.am @@ -211,12 +211,14 @@ _files_appimage_type_notes() { } _files_total_size() { + printf "\n" if [ "$(_files_show_only_number)" = "0" ]; then - printf "\n TOTAL SIZE: $(du -ch $(find . -type d -name 'modules' -printf "%h\n") 2>/dev/null | awk 'END {print $1"iB"}' | sed 's/...$/ &/') of disk space in use\n\n" + echo " TOTAL SIZE: $(du -ch $(find . -type d -name 'modules' -printf "%h\n") 2>/dev/null | awk 'END {print $1"iB"}' | sed 's/...$/ &/') of disk space in use" else - command -v aisap >/dev/null 2>&1 && printf '\n%s\n' " AppImages with 🔒 are sandboxed with aisap" - printf "\n TOTAL SIZE: $(du -ch $(find . -type f -name 'remove' -printf "%h\n") 2>/dev/null | awk 'END {print $1"iB"}' | sed 's/...$/ &/') of disk space in use\n\n" + command -v aisap >/dev/null 2>&1 && printf '%s\n\n' " AppImages with 🔒 are sandboxed with aisap" + echo " TOTAL SIZE: $(du -ch $(find . -type f -name 'remove' -printf "%h\n") 2>/dev/null | awk 'END {print $1"iB"}' | sed 's/...$/ &/') of disk space in use" fi + printf "\n" } _files_sort_by_name() {