From b93a6d41992e424aec9419fef575534ae1d4d0b7 Mon Sep 17 00:00:00 2001 From: iVAN <88724353+ivan-hc@users.noreply.github.com> Date: Tue, 3 Dec 2024 10:02:37 +0100 Subject: [PATCH] Fix total size, by @Azathothas --- modules/database.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/database.am b/modules/database.am index f83afc5d0..a63a2996b 100644 --- a/modules/database.am +++ b/modules/database.am @@ -292,10 +292,9 @@ _files_appimage_type_notes() { } _files_total_size() { - _determine_args printf "\n" command -v aisap >/dev/null 2>&1 && printf '%s\n\n' " AppImages with 🔒 are sandboxed with aisap" - TOTAL_SIZE=$(echo "$ARGPATHS" | grep "^$APPSPATH" | du -ch 2>/dev/null | grep "total" | awk 'END {print $1"iB"}' | sed 's/...$/ &/') + TOTAL_SIZE=$(du -shc $(find "$APPSPATH" -maxdepth 2 -type f -name 'remove' -printf "%h\n" 2>/dev/null) | tail -n1 | awk 'END {print $1"iB"}' | sed 's/...$/ &/') echo " TOTAL SIZE: $TOTAL_SIZE of disk space in use" printf "\n" }