From 9703fdec3ecff8ac6c50524db5c1039326667fe8 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 11 Jun 2023 03:46:00 -0400 Subject: sbopkglint: handle spaces/etc in filenames in tmp_path test. --- sbopkglint.d/70-tmp_path.t.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbopkglint.d') diff --git a/sbopkglint.d/70-tmp_path.t.sh b/sbopkglint.d/70-tmp_path.t.sh index 933cf77..5041f09 100644 --- a/sbopkglint.d/70-tmp_path.t.sh +++ b/sbopkglint.d/70-tmp_path.t.sh @@ -11,7 +11,7 @@ # building the package, you have to set it to the same thing for this # check to work properly. If you don't ever set it, it'll be fine. -found="$(find . -type f | xargs fgrep -l "$TMP/package-")" +found="$(find . -type f -print0 | xargs -0 fgrep -l "$TMP/package-")" if [ -n "$found" ]; then warn "found files with TMP ($TMP/package-*) baked in:" echo "$found" 1>&2 -- cgit v1.2.3