fix(dotfiles): clone or update the dotfiles repo

This commit is contained in:
Oliver Davies 2022-04-26 20:57:31 +01:00
parent c7c6acdd9b
commit ce42ad67d8

View file

@ -7,7 +7,11 @@ DOTFILES_DIR="$HOME/.dotfiles"
PATH="${PATH}:${HOME}/.local/bin"
clone_or_update_dotfiles() {
git -C $DOTFILES_DIR pull
if ! [[ -d "$DOTFILES_DIR" ]]; then
git clone "https://github.com/opdavies/dotfiles.git" "$DOTFILES_DIR"
else
git -C "$DOTFILES_DIR" pull
fi
}
create_config_dir() {