diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-06-25 20:34:26 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-06-25 20:35:16 +0000 |
commit | 9b7d828f8386808e3d65cdc0ae6bf351897b8798 (patch) | |
tree | b54a1b29009223e1b4bd1798c431f51d5a7b2890 /other | |
parent | 957508f698a19857c12cc77bdeb64cd4d0908dfa (diff) |
Only run astyle if the astyle binary exists.
Diffstat (limited to 'other')
-rwxr-xr-x | other/travis/toxcore-script | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
44 | TESTS $MAX_TEST_RETRIES $MAKE -C$BUILD_DIR -j$NPROC test ARGS="-j50 --rerun-failed" CTEST_OUTPUT_ON_FAILURE="$CTEST_OUTPUT_ON_FAILURE" | 44 | TESTS $MAX_TEST_RETRIES $MAKE -C$BUILD_DIR -j$NPROC test ARGS="-j50 --rerun-failed" CTEST_OUTPUT_ON_FAILURE="$CTEST_OUTPUT_ON_FAILURE" |
45 | fi | 45 | fi |
46 | 46 | ||
47 | other/astyle/format-source . $ASTYLE | 47 | if [ -f "$ASTYLE" ]; then |
48 | other/astyle/format-source . $ASTYLE | ||
49 | fi | ||