Added workaround for bug @stedolan/jq/671

master
gdm85 9 years ago
parent 3aaaa2e188
commit 3f2871a4e5

@ -39,20 +39,13 @@ else
fi
fi
## change the assert directory as desired
if [ -z "$SIGNER" ]; then
SIGNER="$USER"
fi
## customize output volumes
if [ -z "$OUTPUTDIR" ]; then
OUTPUTDIR="$SCRIPTS/output"
fi
function read_commit() {
local SHA="$1"
local OUTPUT
set -o pipefail && \
curl -s https://api.github.com/repos/bitcoin/bitcoin/commits/${SHA} | jq -r '.[0].sha'
OUTPUT=$(curl -s https://api.github.com/repos/bitcoin/bitcoin/commits/${SHA} | jq -r '.sha') && \
test ! -z "$OUTPUT" && \
echo "$OUTPUT"
}
## run all necessary containers, detached
@ -113,6 +106,16 @@ function build_all() {
done | $PARALLEL
}
## change the assert directory as desired
if [ -z "$SIGNER" ]; then
SIGNER="$USER"
fi
## customize output volumes
if [ -z "$OUTPUTDIR" ]; then
OUTPUTDIR="$SCRIPTS/output"
fi
set -o pipefail || exit $?
## always get latest release/rc if no commit environment was specified

Loading…
Cancel
Save