Make install more reliable
This commit is contained in:
@@ -19,11 +19,11 @@ if [[ $NEEDS_GIT_DIR != 0 ]]; then
|
|||||||
echo "Setting up git repository."
|
echo "Setting up git repository."
|
||||||
git init --bare ~/.git_home/
|
git init --bare ~/.git_home/
|
||||||
git-home remote add origin https://gitlab.maxregan.me/max/configs.git
|
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
|
fi
|
||||||
|
|
||||||
echo "Checking out configs."
|
echo "Checking out configs."
|
||||||
git-home checkout -b master origin/master
|
git-home pull origin master
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
echo "Failed to checkout sources, there may be a conflicting file from the distribution. Fix and try again"
|
echo "Failed to checkout sources, there may be a conflicting file from the distribution. Fix and try again"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user