Let distrotest fail fast when there remaining executables

This commit is contained in:
Vidar Holen 2022-12-11 20:50:33 -08:00
parent 7cfcf6db8a
commit ae199edb68
1 changed files with 7 additions and 0 deletions

View File

@ -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"