replaced checking first arg with any arg

This commit is contained in:
Václav Šmejkal 2022-04-30 16:01:05 +02:00
parent 42c81aacae
commit f0ec7dedbd

View File

@ -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