Skip to content

Commit 96ccea3

Browse files
committed
Actually; clone if missing
1 parent c4fa7b0 commit 96ccea3

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

bt-iso

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,16 @@ link=$(readlink -f "$0")
167167
BT=$(dirname "$link")
168168
export BT
169169
export BT_CONFIG="$BT/config"
170-
. "$BT_CONFIG/common.cfg"
170+
source "$BT_CONFIG/common.cfg"
171171

172172
TKLDEV_DOCKER=${TKLDEV_DOCKER:-/turnkey/public/tkldev-docker}
173173
INIT_CONF="$TKLDEV_DOCKER/inithooks.conf"
174174

175-
if [[ ! -d "$TKLDEV_DOCKER" ]]; then
176-
msg="TKLDev-Docker repo not found ($TKLDEV_DOCKER) - clone repo to"
177-
check_debug "$msg $TKLDEV_DOCKER or set TKLDEV_DOCKER env var"
175+
if [[ ! -d "$TKLDEV_DOCKER" ]] && [[ "skip_setup" != "true" ]]; then
176+
warning "TKLDev-Docker repo not found ($TKLDEV_DOCKER); cloning"
177+
mkdir -p $(dirname "$TKLDEV_DOCKER")
178+
git clone https://github.com/turnkeylinux/tkldev-docker.git \
179+
"$TKLDEV_DOCKER"
178180
elif [[ ! -f "$INIT_CONF" ]]; then
179181
check_debug "Inithooks preseed file ($INIT_CONF) not found"
180182
else

0 commit comments

Comments
 (0)