local/bin/homeinit: Always clone dotfiles and personal to $HOME
parent
e0099e19ca
commit
b1f2927c06
|
@ -127,7 +127,7 @@ EOF
|
||||||
if [ -e "$SOURCEDIR" ]; then
|
if [ -e "$SOURCEDIR" ]; then
|
||||||
git -C "$SOURCEDIR" pull
|
git -C "$SOURCEDIR" pull
|
||||||
else
|
else
|
||||||
git clone ${SSH_ROOT}Ambrevar/personal
|
git clone ${SSH_ROOT}Ambrevar/personal ~/personal
|
||||||
fi
|
fi
|
||||||
if [ -e ~/.password-store ]; then
|
if [ -e ~/.password-store ]; then
|
||||||
git -C ~/.password-store pull
|
git -C ~/.password-store pull
|
||||||
|
@ -150,7 +150,7 @@ if [ -e ~/dotfiles ]; then
|
||||||
git -C ~/dotfiles remote set-url origin ${ROOT}Ambrevar/dotfiles
|
git -C ~/dotfiles remote set-url origin ${ROOT}Ambrevar/dotfiles
|
||||||
git -C ~/dotfiles pull
|
git -C ~/dotfiles pull
|
||||||
else
|
else
|
||||||
git clone ${ROOT}Ambrevar/dotfiles
|
git clone ${ROOT}Ambrevar/dotfiles ~/dotfiles || exit 1
|
||||||
fi
|
fi
|
||||||
pushd ~/dotfiles
|
pushd ~/dotfiles
|
||||||
## .bash_profile may prevent .profile from being parsed, so we move it.
|
## .bash_profile may prevent .profile from being parsed, so we move it.
|
||||||
|
|
Loading…
Reference in New Issue