From 4b2135f15697ad66ffc951531b91c3991decd852 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Mon, 19 Sep 2022 22:09:37 -0400 Subject: [PATCH] Add some basic error-checking --- contrib/fresh_clone_compile_and_run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/fresh_clone_compile_and_run.sh b/contrib/fresh_clone_compile_and_run.sh index 71a12c124..bc0364cf9 100755 --- a/contrib/fresh_clone_compile_and_run.sh +++ b/contrib/fresh_clone_compile_and_run.sh @@ -4,13 +4,15 @@ # file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html # Usage: $0 BRANCH JOBS +# TODO: default to master branch with 2 jobs + +set -eu -o pipefail BRANCH=$1 git clone https://git.hush.is/hush/hush3 cd hush3 git checkout $BRANCH -# Build with 2 cores # You need 2GB of RAM per core, don't use too many # (GB of RAM)/2 - 1 is the optimal core count for compiling Hush # `nproc` tells you how many cores you have