diff --git a/build.sh b/build.sh index 4e1f21f..01fa8d2 100644 --- a/build.sh +++ b/build.sh @@ -18,7 +18,7 @@ output="out/why2" flags="-ljson-c -lcurl" # Check for debug flag -if [[ "$1" == "debug" ]]; then +if [[ "$*" == "debug" ]]; then flags="$flags -g" echo "Using debug flag" fi