Update dotfiles/.local/bin/install-dotfiles
This commit is contained in:
parent
3c5bb10787
commit
8cabfd5acb
1 changed files with 7 additions and 7 deletions
|
@ -15,14 +15,14 @@ else
|
||||||
fi
|
fi
|
||||||
if [ -d /usr/local/src/professor-dotfiles/.git ]; then
|
if [ -d /usr/local/src/professor-dotfiles/.git ]; then
|
||||||
cd /usr/local/src/professor-dotfiles
|
cd /usr/local/src/professor-dotfiles
|
||||||
${SUDO_PREFIX}git config pull.rebase false
|
"${SUDO_PREFIX}" git config pull.rebase false
|
||||||
${SUDO_PREFIX}git pull origin master
|
"${SUDO_PREFIX}" git pull origin master
|
||||||
${SUDO_PREFIX}chown -Rf "$USER":"$(id -g -n)" /usr/local/src/professor-dotfiles
|
"${SUDO_PREFIX}" chown -Rf "$USER":"$(id -g -n)" /usr/local/src/professor-dotfiles
|
||||||
cd ~/
|
cd ~/
|
||||||
else
|
else
|
||||||
${SUDO_PREFIX}sudo rm -rf /usr/local/src/professor-dotfiles
|
"${SUDO_PREFIX}" rm -rf /usr/local/src/professor-dotfiles
|
||||||
${SUDO_PREFIX}sudo git clone https://gitlab.com/megabyte-labs/dotfiles.git /usr/local/src/professor-dotfiles
|
"${SUDO_PREFIX}" git clone https://gitlab.com/megabyte-labs/dotfiles.git /usr/local/src/professor-dotfiles
|
||||||
${SUDO_PREFIX}chown -Rf "$USER":"$(id -g -n)" /usr/local/src/professor-dotfiles
|
"${SUDO_PREFIX}" chown -Rf "$USER":"$(id -g -n)" /usr/local/src/professor-dotfiles
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue