From 277600a409263dc219fedce1536a91b8fc0fd421 Mon Sep 17 00:00:00 2001 From: Jackson Delahunt Date: Sat, 23 Feb 2019 16:20:55 +1100 Subject: [PATCH] only-global --- scripts/bootstrap.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index a2670c1..3c7d96a 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -9,11 +9,13 @@ REPO_ROOT=$(dirname $(realpath $0))/.. # Export desktop environment shell configuration export $($REPO_ROOT/scripts/environment.sh) -# Clone the desktop environment to the host -git clone https://github.com/$DESKTOP_ENVIRONMENT_REGISTRY/$DESKTOP_ENVIRONMENT_CONTAINER $DESKTOP_ENVIRONMENT_REPOSITORY - -# Fork setup to desktop environment configured location immediately +# Fork setup to desktop environment global location immediately if [ ! "$REPO_ROOT" -ef "$DESKTOP_ENVIRONMENT_REPOSITORY" ]; then + + # Clone the desktop environment to the global location on the host + git clone https://github.com/$DESKTOP_ENVIRONMENT_REGISTRY/$DESKTOP_ENVIRONMENT_CONTAINER $DESKTOP_ENVIRONMENT_REPOSITORY + + # Restart bootstrap from the global location $DESKTOP_ENVIRONMENT_REPOSITORY/scripts/bootstrap.sh exit 0 fi