aboutgitcode
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-04-06 15:28:34 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-04-06 15:35:55 +0200
commit9bb4a41d19f9ddc44208849ce6f84fe79fa220a7 (patch)
tree0d98803daec8d766d466b1dacc866e6a930bab05
parentbc7bbfa08475f3ef43e5caf366a5c7730d6749da (diff)
downloadmbuto-9bb4a41d19f9ddc44208849ce6f84fe79fa220a7.tar
mbuto-9bb4a41d19f9ddc44208849ce6f84fe79fa220a7.tar.gz
mbuto-9bb4a41d19f9ddc44208849ce6f84fe79fa220a7.tar.bz2
mbuto-9bb4a41d19f9ddc44208849ce6f84fe79fa220a7.tar.lz
mbuto-9bb4a41d19f9ddc44208849ce6f84fe79fa220a7.tar.xz
mbuto-9bb4a41d19f9ddc44208849ce6f84fe79fa220a7.tar.zst
mbuto-9bb4a41d19f9ddc44208849ce6f84fe79fa220a7.zip
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 <sbrivio@redhat.com>
-rwxr-xr-xmbuto4
1 files 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 .)"