Browse Source

Set error code correctly when cargo or rustc not found

pull/38/head
Duke Leto 3 years ago
parent
commit
aebaa01e19
  1. 5
      build.sh

5
build.sh

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
# Copyright 2019-2021 The Hush Developers # Copyright 2019-2021 The Hush Developers
# Released under the GPLv3
UNAME=$(uname) UNAME=$(uname)
@ -17,12 +18,12 @@ fi
if ! command -v rustc &> /dev/null if ! command -v rustc &> /dev/null
then then
echo "rustc could not be found. Please install it and try again." echo "rustc could not be found. Please install it and try again."
exit exit 1
fi fi
if ! command -v cargo &> /dev/null if ! command -v cargo &> /dev/null
then then
echo "cargo could not be found. Please install it and try again." echo "cargo could not be found. Please install it and try again."
exit exit 1
fi fi
VERSION=$(cat src/version.h |cut -d\" -f2) VERSION=$(cat src/version.h |cut -d\" -f2)

Loading…
Cancel
Save