diff --git a/mk.sh b/mk.sh index 1f27f92..d61468c 100755 --- a/mk.sh +++ b/mk.sh @@ -5,4 +5,8 @@ if [ ! -d "build" ]; then mkdir build && cd build && cmake ../libdtn && cd .. || (echo cargo:error="CMAKE BUILD FAILED" && cd .. && rmdir build) fi -cd build && make -j 24 && cd .. && cargo build || echo cargo:error="MAKE FAILED" +if [ -z $1 ]; then + cd build && make -j 24 && cd .. && cargo build || echo cargo:error="MAKE FAILED" +else + cd build && make -j 24 && cd .. || echo cargo:error="MAKE FAILED" +fi