Skip to content

Commit 6c762a7

Browse files
committed
Merge branch 'fix-skip-git' of https://github.com/mattolenik/netbox-docker into mattolenik-fix-skip-git
2 parents 946a503 + 34ce5be commit 6c762a7

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
@@ -108,12 +108,12 @@ SRC_ORG="${SRC_ORG-netbox-community}"
108108
SRC_REPO="${SRC_REPO-netbox}"
109109
BRANCH="${1}"
110110
URL="${URL-https://github.com/${SRC_ORG}/${SRC_REPO}.git}"
111+
NETBOX_PATH="${NETBOX_PATH-.netbox}"
111112

112113
###
113114
# fetching the source
114115
###
115-
if [ "${2}" != "--push-only" ] ; then
116-
NETBOX_PATH="${NETBOX_PATH-.netbox}"
116+
if [ "${2}" != "--push-only" ] && [ -z "${SKIP_GIT}" ] ; then
117117
echo "🌐 Checking out '${BRANCH}' of netbox from the url '${URL}' into '${NETBOX_PATH}'"
118118
if [ ! -d "${NETBOX_PATH}" ]; then
119119
$DRY git clone -q --depth 10 -b "${BRANCH}" "${URL}" "${NETBOX_PATH}"

0 commit comments

Comments
 (0)