Skip to content

Commit

Permalink
Update database.am: fix search of librarie's size
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Sep 1, 2024
1 parent 4709771 commit 272c81d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/database.am
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ _files_header() {

_files_sizes() {
if grep -q "usr/local/lib" ./"$arg"/remove; then
LIBNAME=$(<"$APPSPATH"/"$arg"/remove tr ' ' '\n' | grep "usr/local/lib" | head -1)
SIZE=$(du -sh "$LIBNAME" | cut -f1 | sort -rh | head -1)
LIBNAME=$(<"$APPSPATH"/"$arg"/remove tr ' ' '\n' | grep "usr/local/lib" | head -1 | sed 's/*//g')
SIZE=$(du -sh "$LIBNAME"* | cut -f1 | sort -rh | head -1)
else
SIZE=$(du -sh -- "$arg" | cut -f1 -d" ")
fi
Expand Down

0 comments on commit 272c81d

Please sign in to comment.