forked from josch/mmdebstrap
coverage.sh: split up linting conditional
This commit is contained in:
parent
b85df6b8f2
commit
892e568496
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue