Corrections for shellcheck warnings
This commit is contained in:
parent
0a38220497
commit
e060f86b9a
@ -19,7 +19,7 @@ fi
|
|||||||
# Checking if PRERELEASE is either unset, 'true' or 'false'
|
# Checking if PRERELEASE is either unset, 'true' or 'false'
|
||||||
###
|
###
|
||||||
if [ -n "${PRERELEASE}" ] &&
|
if [ -n "${PRERELEASE}" ] &&
|
||||||
{ [ "${PRERELEASE}" != "true" ] && [ "${PRERELEAS}E" != "false" ]; }; then
|
{ [ "${PRERELEASE}" != "true" ] && [ "${PRERELEASE}" != "false" ]; }; then
|
||||||
|
|
||||||
if [ -z "${DEBUG}" ]; then
|
if [ -z "${DEBUG}" ]; then
|
||||||
echo "⚠️ PRERELEASE must be either unset, 'true' or 'false', but was '${PRERELEASE}'!"
|
echo "⚠️ PRERELEASE must be either unset, 'true' or 'false', but was '${PRERELEASE}'!"
|
||||||
|
9
build.sh
9
build.sh
@ -228,16 +228,13 @@ for DOCKER_TARGET in "${DOCKER_TARGETS[@]}"; do
|
|||||||
)
|
)
|
||||||
if [ -d "${NETBOX_PATH}/.git" ]; then
|
if [ -d "${NETBOX_PATH}/.git" ]; then
|
||||||
DOCKER_BUILD_ARGS+=(
|
DOCKER_BUILD_ARGS+=(
|
||||||
--label "NETBOX_GIT_COMMIT=$($DRY cd ${NETBOX_PATH}; $DRY git rev-parse HEAD)"
|
--label "NETBOX_GIT_COMMIT=$($DRY cd "${NETBOX_PATH}"; $DRY git rev-parse HEAD)"
|
||||||
--label "NETBOX_GIT_URL=$($DRY cd ${NETBOX_PATH}; $DRY git remote get-url origin)"
|
--label "NETBOX_GIT_URL=$($DRY cd "${NETBOX_PATH}"; $DRY git remote get-url origin)"
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# --build-arg
|
# --build-arg
|
||||||
DOCKER_BUILD_ARGS+=(
|
DOCKER_BUILD_ARGS+=( --build-arg "NETBOX_PATH=${NETBOX_PATH}" )
|
||||||
--build-arg "NETBOX_PATH=${NETBOX_PATH}"
|
|
||||||
--build-arg "DOCKER_REPO=${DOCKER_REPO}"
|
|
||||||
)
|
|
||||||
if [ -n "${DOCKER_FROM}" ]; then
|
if [ -n "${DOCKER_FROM}" ]; then
|
||||||
DOCKER_BUILD_ARGS+=( --build-arg "FROM=${DOCKER_FROM}" )
|
DOCKER_BUILD_ARGS+=( --build-arg "FROM=${DOCKER_FROM}" )
|
||||||
fi
|
fi
|
||||||
|
@ -2,4 +2,5 @@
|
|||||||
|
|
||||||
. hooks/common
|
. hooks/common
|
||||||
|
|
||||||
|
# shellcheck disable=SC2119
|
||||||
run_build
|
run_build
|
||||||
|
Loading…
Reference in New Issue
Block a user