From aebaa01e19229e3efed2ea5b248e7bde8db2ff2e Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Mon, 26 Jul 2021 23:08:21 -0400 Subject: [PATCH] Set error code correctly when cargo or rustc not found --- build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index a7ecdca..8938b8a 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,6 @@ #!/bin/bash # Copyright 2019-2021 The Hush Developers +# Released under the GPLv3 UNAME=$(uname) @@ -17,12 +18,12 @@ fi if ! command -v rustc &> /dev/null then echo "rustc could not be found. Please install it and try again." - exit + exit 1 fi if ! command -v cargo &> /dev/null then echo "cargo could not be found. Please install it and try again." - exit + exit 1 fi VERSION=$(cat src/version.h |cut -d\" -f2)