From 9bb4a41d19f9ddc44208849ce6f84fe79fa220a7 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 6 Apr 2022 15:28:34 +0200 Subject: mbuto: Fix binary size calculation for libraries If modules are installed in subdirectories of lib/modules, we need to pass a matching wildcard to du(1). Signed-off-by: Stefano Brivio --- mbuto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbuto b/mbuto index 6d447bc..6b1fb96 100755 --- a/mbuto +++ b/mbuto @@ -902,8 +902,8 @@ add() { stats() { __bin="$(dir_size bin usr/bin sbin usr/sbin usr/local/bin \ usr/local/sbin)" - __lib="$(dir_size --exclude='lib/modules/' lib lib64 usr/lib usr/lib32 \ - usr/lib64 usr/local/lib)" + __lib="$(dir_size --exclude='lib/modules/*' lib lib64 usr/lib \ + usr/lib32 usr/lib64 usr/local/lib)" __mod="$(dir_size lib/modules)" __sum="$(dir_size .)" -- cgit v1.2.3