diff options
author | Derek Stevens <nilix@nilfm.cc> | 2021-11-16 15:19:53 -0700 |
---|---|---|
committer | Derek Stevens <nilix@nilfm.cc> | 2021-11-16 15:19:53 -0700 |
commit | 30a50ad90eaed4080d96b822bf0d67bff6a1137a (patch) | |
tree | 74cdb84a8272a20051b1476bd17d6e4abbd368b1 | |
parent | ec51fdf5c9adf3b75986fe61ef35d221c34d8679 (diff) |
dont quit build if clang-format not present
-rwxr-xr-x | build.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,7 +4,9 @@ if [ ! -e config.h ]; then cp config.def.h config.h fi -clang-format -i ./*.c ./*.h ./*/*.c ./*/*.h +if which clang-format > /dev/null; then + clang-format -i ./*.c ./*.h ./*/*.c ./*/*.h +fi mk clean mk o.rio |