Skip to content

Commit 2cda174

Browse files
committed
Allow optional arguments during fresh install.
1 parent 89f07d4 commit 2cda174

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

main.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,15 @@ check_sudo() {
245245
clone_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

0 commit comments

Comments
 (0)