From 272c81db87ccd8f8b03cf3ff6d630bf578f91290 Mon Sep 17 00:00:00 2001 From: iVAN <88724353+ivan-hc@users.noreply.github.com> Date: Mon, 2 Sep 2024 00:40:16 +0200 Subject: [PATCH] Update database.am: fix search of librarie's size --- modules/database.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/database.am b/modules/database.am index 3bbeba9fd..05cd4242b 100644 --- a/modules/database.am +++ b/modules/database.am @@ -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