From f5ade47b2e59328ade6ce9fa42acab008743e457 Mon Sep 17 00:00:00 2001 From: Max Regan Date: Fri, 26 Jun 2020 05:19:09 +0000 Subject: [PATCH] Make install more reliable --- .mgr_config/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.mgr_config/install.sh b/.mgr_config/install.sh index fdecf80..1497599 100644 --- a/.mgr_config/install.sh +++ b/.mgr_config/install.sh @@ -19,11 +19,11 @@ if [[ $NEEDS_GIT_DIR != 0 ]]; then echo "Setting up git repository." git init --bare ~/.git_home/ git-home remote add origin https://gitlab.maxregan.me/max/configs.git - git-home pull origin master + git-home branch master --set-upstream-to origin/master fi echo "Checking out configs." -git-home checkout -b master origin/master +git-home pull origin master if [[ $? != 0 ]]; then echo "Failed to checkout sources, there may be a conflicting file from the distribution. Fix and try again" exit 1