diff --git a/native/MacTouchBar/make.sh b/native/MacTouchBar/make.sh index ab9a83bed6d1..8c15f51628cb 100755 --- a/native/MacTouchBar/make.sh +++ b/native/MacTouchBar/make.sh @@ -1,11 +1,13 @@ #!/bin/sh + rm -rf build mkdir build -cd build +cd build || exit 1 -cmake -DCMAKE_BUILD_TYPE=Release .. -make VERBOSE=1 +cmake -DCMAKE_BUILD_TYPE=Release .. || exit 2 + +make VERBOSE=1 || exit 3 if [ "$1" = "install" ]; then -make install/strip VERBOSE=1 -fi \ No newline at end of file + make install/strip VERBOSE=1 || exit 4 +fi diff --git a/native/fsNotifier/mac/make.sh b/native/fsNotifier/mac/make.sh index ab9a83bed6d1..8c15f51628cb 100755 --- a/native/fsNotifier/mac/make.sh +++ b/native/fsNotifier/mac/make.sh @@ -1,11 +1,13 @@ #!/bin/sh + rm -rf build mkdir build -cd build +cd build || exit 1 -cmake -DCMAKE_BUILD_TYPE=Release .. -make VERBOSE=1 +cmake -DCMAKE_BUILD_TYPE=Release .. || exit 2 + +make VERBOSE=1 || exit 3 if [ "$1" = "install" ]; then -make install/strip VERBOSE=1 -fi \ No newline at end of file + make install/strip VERBOSE=1 || exit 4 +fi