Add some basic error-checking
This commit is contained in:
@@ -4,13 +4,15 @@
|
|||||||
# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
|
# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
|
||||||
|
|
||||||
# Usage: $0 BRANCH JOBS
|
# Usage: $0 BRANCH JOBS
|
||||||
|
# TODO: default to master branch with 2 jobs
|
||||||
|
|
||||||
|
set -eu -o pipefail
|
||||||
|
|
||||||
BRANCH=$1
|
BRANCH=$1
|
||||||
|
|
||||||
git clone https://git.hush.is/hush/hush3
|
git clone https://git.hush.is/hush/hush3
|
||||||
cd hush3
|
cd hush3
|
||||||
git checkout $BRANCH
|
git checkout $BRANCH
|
||||||
# Build with 2 cores
|
|
||||||
# You need 2GB of RAM per core, don't use too many
|
# 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
|
# (GB of RAM)/2 - 1 is the optimal core count for compiling Hush
|
||||||
# `nproc` tells you how many cores you have
|
# `nproc` tells you how many cores you have
|
||||||
|
|||||||
Reference in New Issue
Block a user