Added workaround for bug @stedolan/jq/671

This commit is contained in:
gdm85 2015-01-16 11:04:04 +01:00
parent 3aaaa2e188
commit 3f2871a4e5

View File

@ -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