Update build.sh appended prefix "X" to string variable comparisons (#1710)

It is recommended to use the letter 'X' when comparing strings because if the string is a - it causes issues according to the book with the turtle.
This commit is contained in:
albaropereyra22 2023-08-10 23:45:12 -07:00 committed by GitHub
parent 3fa480dd87
commit d7ae3a21b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@ else
make_flags="$make_flags -j$parallel" make_flags="$make_flags -j$parallel"
fi fi
if [ "$1" = "-t" ]; then if [ "X$1" = "X-t" ]; then
build_drogon 1 build_drogon 1
elif [ "$1" = "-tshared" ]; then elif [ "X$1" = "X-tshared" ]; then
build_drogon 2 build_drogon 2
else else
build_drogon 0 build_drogon 0