From 9cdc8aa05aace2e10d513c9e9d91e63089c9b048 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Sun, 9 Jul 2023 02:55:17 +0000 Subject: [PATCH] Latest --- scripts/provision.sh | 18 +++++++++--------- scripts/src/provision.sh.tmpl | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/provision.sh b/scripts/provision.sh index 892683c4..74137065 100644 --- a/scripts/provision.sh +++ b/scripts/provision.sh @@ -69,18 +69,18 @@ fi # @description Detect `START_REPO` format and determine appropriate git address, otherwise use the master Install Doctor branch if [ -z "$START_REPO" ]; then - START_REPO="https://github.com/megabyte-labs/install.doctor.git" + START_REPO="https://github.com/megabyte-labs/install.doctor.git" else - if [[ "$START_REPO == *"/"* ]]; then - # Either full git address or GitHubUser/RepoName - if [[ "$START_REPO" == *":"* ]] || [[ "$START_REPO" == *"//"* ]]; then - START_REPO="$START_REPO" - else - START_REPO="https://github.com/${START_REPO}.git" - fi + if [[ "$START_REPO" == *"/"* ]]; then + # Either full git address or GitHubUser/RepoName + if [[ "$START_REPO" == *":"* ]] || [[ "$START_REPO" == *"//"* ]]; then + START_REPO="$START_REPO" else - START_REPO="https://github.com/$START_REPO/install.doctor.git" + START_REPO="https://github.com/${START_REPO}.git" fi + else + START_REPO="https://github.com/$START_REPO/install.doctor.git" + fi fi # @description Logs with style using Gum if it is installed, otherwise it uses `echo`. It also leverages Glow to render markdown. diff --git a/scripts/src/provision.sh.tmpl b/scripts/src/provision.sh.tmpl index 462a48e9..7af148aa 100644 --- a/scripts/src/provision.sh.tmpl +++ b/scripts/src/provision.sh.tmpl @@ -74,7 +74,7 @@ else if [ -n "$REPO" ] && [ -z "$START_REPO" ]; then START_REPO="$REPO" fi - if [[ "$START_REPO == *"/"* ]]; then + if [[ "$START_REPO" == *"/"* ]]; then # Either full git address or GitHubUser/RepoName if [[ "$START_REPO" == *":"* ]] || [[ "$START_REPO" == *"//"* ]]; then START_REPO="$START_REPO"