From 9b7d828f8386808e3d65cdc0ae6bf351897b8798 Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 25 Jun 2018 20:34:26 +0000 Subject: Only run astyle if the astyle binary exists. --- other/travis/toxcore-script | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'other') diff --git a/other/travis/toxcore-script b/other/travis/toxcore-script index 1c6bea75..f82fd978 100755 --- a/other/travis/toxcore-script +++ b/other/travis/toxcore-script @@ -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" fi -other/astyle/format-source . $ASTYLE +if [ -f "$ASTYLE" ]; then + other/astyle/format-source . $ASTYLE +fi -- cgit v1.2.3