Fixed git status call

This commit is contained in:
2020-05-06 10:39:52 +02:00
parent d4eb464ac0
commit faaac4d215

View File

@@ -27,8 +27,7 @@ pip install -q autopep8
echo "Running autopep8..." echo "Running autopep8..."
autopep8 -i -r $INPUT_CHECKPATH $INPUT_OPTIONS || echo "Problem running autopep8!" autopep8 -i -r $INPUT_CHECKPATH $INPUT_OPTIONS || echo "Problem running autopep8!"
if -n "$(git status -s)"; if [-n "$(git status -s)"]; then
then
if $INPUT_DRY; then if $INPUT_DRY; then
echo "Found non-compliant files!" echo "Found non-compliant files!"
exit 1 exit 1