File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -245,9 +245,15 @@ check_sudo() {
245245clone_repo () {
246246 warn " Attempting to clone ${APPLICATION_NAME} repo to '${C["Folder"]-}${DETECTED_HOMEDIR} /.docker${NC-} ' location."
247247 git clone -b " ${TARGET_BRANCH} " " ${APPLICATION_REPO} " " ${DETECTED_HOMEDIR} /.docker" ||
248- fatal " Failed to clone ${APPLICATION_NAME} repo.\nFailing command: ${C["FailingCommand"]-} git clone -b \" ${TARGET_BRANCH} \" \" ${APPLICATION_REPO} \" \" ${DETECTED_HOMEDIR} /.docker\" "
249- notice " Performing first run install."
250- exec bash " ${DETECTED_HOMEDIR} /.docker/main.sh" " -yvi"
248+ fatal \
249+ " Failed to clone ${APPLICATION_NAME} repo.\n" \
250+ " Failing command: ${C["FailingCommand"]-} git clone -b \" ${TARGET_BRANCH} \" \" ${APPLICATION_REPO} \" \" ${DETECTED_HOMEDIR} /.docker\" "
251+ if [[ ${# ARGS[@]} -eq 0 ]]; then
252+ notice " Performing first run install."
253+ exec bash " ${DETECTED_HOMEDIR} /.docker/main.sh" " -yvi"
254+ else
255+ exec bash " ${DETECTED_HOMEDIR} /.docker/main.sh" " ${ARGS[@]} "
256+ fi
251257}
252258
253259# Cleanup Function
You can’t perform that action at this time.
0 commit comments