From 892e568496c25011fe1b0c8a7fe0c9ada487f77e Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Mon, 5 Sep 2022 05:44:45 +0200 Subject: [PATCH] coverage.sh: split up linting conditional --- coverage.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/coverage.sh b/coverage.sh index f637e56..781f192 100755 --- a/coverage.sh +++ b/coverage.sh @@ -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