dotfiles/bootstrap

18 lines
337 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
{
2021-08-27 15:43:05 +02:00
if ! command -v git >>/dev/null; then
fi
DOTFILES_HOME=${DOTFILES_HOME:-"$HOME/.odtfiles"}
DOTFILES_GIT_MIRROR=${DOTFILES_GIT_MIRROR:-"https://gitlab.com/ajhalili2006/dotfiles"}
if [[ ! -d "$DOTFILES_HOME" ]]; then
git clone "$DOTFILES_GIT_MIRROR" "$DOTFILES_HOME"
else
git -C "$DOTFILES_HOME" pull
fi
}