Skip to content
Snippets Groups Projects
Commit b641def0 authored by Jonas Toth's avatar Jonas Toth Committed by Michael Aaron Murphy
Browse files

build: check for existence of 0 instead of string comparisons

parent 6941413d
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,9 @@ export EXAMPLES_DIR ...@@ -55,7 +55,9 @@ export EXAMPLES_DIR
CPU_CORES=$(nproc --all) CPU_CORES=$(nproc --all)
# Build debug binary # Build debug binary
if [ -n "$RUSTUP" ] && [ "$RUSTUP" -eq 1 ]; then # Check if the variabl $RUSTUP is set. If yes the $TOOLCHAIN can be choosen via cargo, otherwise cargo might not now
# about that feature.
if [ -v RUSTUP ]; then
cargo +$TOOLCHAIN build cargo +$TOOLCHAIN build
else else
cargo build cargo build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment