Skip to content

Commit

Permalink
Fix total size, by @Azathothas
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Dec 3, 2024
1 parent ea36a09 commit b93a6d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/database.am
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit b93a6d4

Please sign in to comment.