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

View File

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