Skip to content

Commit 34ce5be

Browse files
author
Matt Olenik
committed
Respect SKIP_GIT environment variable when building
Fixes issue #190
1 parent eddc308 commit 34ce5be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ SRC_ORG="${SRC_ORG-netbox-community}"
111111
SRC_REPO="${SRC_REPO-netbox}"
112112
BRANCH="${1}"
113113
URL="${URL-https://github.com/${SRC_ORG}/${SRC_REPO}.git}"
114+
NETBOX_PATH="${NETBOX_PATH-.netbox}"
114115

115116
###
116117
# fetching the source
117118
###
118-
if [ "${2}" != "--push-only" ] ; then
119-
NETBOX_PATH="${NETBOX_PATH-.netbox}"
119+
if [ "${2}" != "--push-only" ] && [ -z "${SKIP_GIT}" ] ; then
120120
echo "🌐 Checking out '${BRANCH}' of netbox from the url '${URL}' into '${NETBOX_PATH}'"
121121
if [ ! -d "${NETBOX_PATH}" ]; then
122122
$DRY git clone -q --depth 10 -b "${BRANCH}" "${URL}" "${NETBOX_PATH}"

0 commit comments

Comments
 (0)