From ae199edb680dd416790b7890fa52e64a11f2b4af Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sun, 11 Dec 2022 20:50:33 -0800 Subject: [PATCH] Let distrotest fail fast when there remaining executables --- test/distrotest | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/distrotest b/test/distrotest index 53a40a7..4ad66f8 100755 --- a/test/distrotest +++ b/test/distrotest @@ -25,6 +25,13 @@ exit 0 echo "Deleting 'dist' and 'dist-newstyle'..." rm -rf dist dist-newstyle +execs=$(find . -name shellcheck) + +if [ -n "$execs" ] +then + die "Found unexpected executables. Remove and try again: $execs" +fi + log=$(mktemp) || die "Can't create temp file" date >> "$log" || die "Can't write to log"