add DOTFILES_BRANCH option
This commit is contained in:
parent
baa6bd68d2
commit
3481e63d19
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
DOTFILES_HOME="${DOTFILES_HOME:-$HOME}"
|
||||
DOTFILES_ROOT="${DOTFILES_ROOT:-$DOTFILES_HOME/.dotfiles}"
|
||||
DOTFILES_REMOTE="${DOTFILES_REMOTE:-git@github.com:Klowner/dotfiles}"
|
||||
DOTFILES_BRANCH="${DOTFILES_BRANCH:-main}"
|
||||
DOTFILES_WORK_TREE="${DOTFILES_WORK_TREE:-$HOME}"
|
||||
DOTFILES_ALIAS="/usr/bin/git --git-dir=${DOTFILES_ROOT} --work-tree=${DOTFILES_WORK_TREE}"
|
||||
DEPENDENCIES=(git zsh)
|
||||
|
@ -31,7 +32,7 @@ function smart_clone() {
|
|||
die "$DOTFILES_ROOT already exists, aborting."
|
||||
fi
|
||||
else
|
||||
git clone --bare $DOTFILES_REMOTE $DOTFILES_ROOT
|
||||
git clone --bare $DOTFILES_REMOTE $DOTFILES_ROOT --branch $DOTFILES_BRANCH
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue