Skip to content

Commit

Permalink
Update database.am: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Sep 1, 2024
1 parent bfbd10b commit 4709771
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/database.am
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4709771

Please sign in to comment.