coverage.sh: split up linting conditional

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-09-05 05:44:45 +02:00
parent b85df6b8f2
commit 892e568496
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -2,7 +2,7 @@
set -eu
if [ -e ./mmdebstrap -a -e ./tarfilter -a -e ./coverage.py ]; then
if [ -e ./mmdebstrap ]; then
TMPFILE=$(mktemp)
perltidy < ./mmdebstrap > "$TMPFILE"
ret=0
@ -20,10 +20,11 @@ if [ -e ./mmdebstrap -a -e ./tarfilter -a -e ./coverage.py ]; then
fi
perlcritic --severity 4 --verbose 8 ./mmdebstrap
black --check ./tarfilter ./coverage.py
fi
[ -e ./tarfilter ] && black --check ./tarfilter
[ -e ./coverage.py ] && black --check ./coverage.py
mirrordir="./shared/cache/debian"
if [ ! -e "$mirrordir" ]; then