Only run astyle if the astyle binary exists.

This commit is contained in:
iphydf 2018-06-25 20:34:26 +00:00
parent 957508f698
commit 9b7d828f83
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -44,4 +44,6 @@ if $RUN_TESTS; then
TESTS $MAX_TEST_RETRIES $MAKE -C$BUILD_DIR -j$NPROC test ARGS="-j50 --rerun-failed" CTEST_OUTPUT_ON_FAILURE="$CTEST_OUTPUT_ON_FAILURE" TESTS $MAX_TEST_RETRIES $MAKE -C$BUILD_DIR -j$NPROC test ARGS="-j50 --rerun-failed" CTEST_OUTPUT_ON_FAILURE="$CTEST_OUTPUT_ON_FAILURE"
fi fi
if [ -f "$ASTYLE" ]; then
other/astyle/format-source . $ASTYLE other/astyle/format-source . $ASTYLE
fi