File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,14 +167,16 @@ link=$(readlink -f "$0")
167167BT=$( dirname " $link " )
168168export BT
169169export BT_CONFIG=" $BT /config"
170- . " $BT_CONFIG /common.cfg"
170+ source " $BT_CONFIG /common.cfg"
171171
172172TKLDEV_DOCKER=${TKLDEV_DOCKER:-/ turnkey/ public/ tkldev-docker}
173173INIT_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 "
178180elif [[ ! -f " $INIT_CONF " ]]; then
179181 check_debug " Inithooks preseed file ($INIT_CONF ) not found"
180182else
You can’t perform that action at this time.
0 commit comments