From 30a50ad90eaed4080d96b822bf0d67bff6a1137a Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Tue, 16 Nov 2021 15:19:53 -0700 Subject: [PATCH] dont quit build if clang-format not present --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 81d6abd..7ad2712 100755 --- a/build.sh +++ b/build.sh @@ -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