Make install more reliable

This commit is contained in:
2020-06-26 05:19:09 +00:00
parent 015787e73a
commit f5ade47b2e

View File

@@ -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