aboutsummaryrefslogtreecommitdiff
path: root/sbopkglint.d/05-basic-sanity.t.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sbopkglint.d/05-basic-sanity.t.sh')
-rw-r--r--sbopkglint.d/05-basic-sanity.t.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/sbopkglint.d/05-basic-sanity.t.sh b/sbopkglint.d/05-basic-sanity.t.sh
index 984b285..cfdf9cd 100644
--- a/sbopkglint.d/05-basic-sanity.t.sh
+++ b/sbopkglint.d/05-basic-sanity.t.sh
@@ -162,3 +162,8 @@ brokenlinks="$( find -L . -type l \! -lname '/*' )"
[ -n "$brokenabslinks" ] && warn "package contains broken absolute symlinks:" && ls -ld $brokenabslinks
[ -n "$brokenlinks" ] && warn "package contains broken relative symlinks:" && ls -ld $brokenlinks
+
+# 20230320 bkw: empty directories. this isn't an error, just a note, and
+# we ignore any empty dirs under /var because lots of packages need these.
+emptydirs="$( find . -type d -a -empty | grep -v 'var\>' )"
+[ -n "$emptydirs" ] && note "package contains empty dirs, are these necessary?" && ls -ld $emptydirs