dotfiles-legacy/bootstrap

18 lines
337 B
Bash
Executable File

#!/usr/bin/env bash
{
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
}