💄 Cleanup and hide warnings

This commit is contained in:
Christian Mäder 2018-03-05 14:29:24 +01:00
parent 6a01a3379d
commit 8f001adef4
No known key found for this signature in database
GPG key ID: 92FFD0A711F196BB
3 changed files with 41 additions and 17 deletions

View file

@ -1,17 +1,18 @@
#!/bin/bash
# Builds all published branches
ORIGINAL_GITHUB_REPO="digitalocean/netbox"
GITHUB_REPO="${GITHUB_REPO-$ORIGINAL_GITHUB_REPO}"
URL_RELEASES="https://api.github.com/repos/${GITHUB_REPO}/branches"
CURL_OPTS="-s"
CURL="curl ${CURL_OPTS}"
CURL="curl -sS"
BRANCHES=$($CURL "${URL_RELEASES}" | jq -r 'map(.name) | .[] | scan("^[^v].+")')
VARIANTS=( "ldap" )
for BRANCH in $BRANCHES; do
# shellcheck disable=SC2068
./build.sh "${BRANCH}" $@
for var in "${VARIANTS[@]}" ; do
VARIANT=$var ./build.sh "${BRANCH}" $@