aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbopkglint.d/70-tmp_path.t.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbopkglint.d/70-tmp_path.t.sh b/sbopkglint.d/70-tmp_path.t.sh
index 9d1f090..4bf9218 100644
--- a/sbopkglint.d/70-tmp_path.t.sh
+++ b/sbopkglint.d/70-tmp_path.t.sh
@@ -8,8 +8,10 @@
#######################################################################
# checks for /tmp/SBo (or the environment TMP) hardcoded in files.
# don't check the SlackBuild in the doc dir, since it's guaranteed to match.
+# also don't check kernel modules (they include the full path to the source,
+# for debug messages).
-found="$(find . -type f | grep -v '^\./usr/doc/.*\.SlackBuild$' | xargs fgrep -l "$TMP")"
+found="$(find . -type f | grep -v '^\./usr/doc/.*\.SlackBuild$' | grep -v '^\./lib/modules/' | xargs fgrep -l "$TMP")"
if [ -n "$found" ]; then
warn "found files with TMP ($TMP) baked in:"
echo "$found" 1>&2