diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-04-06 15:28:34 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-04-06 15:35:55 +0200 |
commit | 9bb4a41d19f9ddc44208849ce6f84fe79fa220a7 (patch) | |
tree | 0d98803daec8d766d466b1dacc866e6a930bab05 | |
parent | bc7bbfa08475f3ef43e5caf366a5c7730d6749da (diff) | |
download | mbuto-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-x | mbuto | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 .)" |