lib: Add BASH_IT_DEVELOPMENT_BRANCH variable
parent
ecf65569ce
commit
8e6876719b
|
|
@ -181,6 +181,9 @@ _bash-it_update-() {
|
|||
if [ -z "$BASH_IT_REMOTE" ]; then
|
||||
BASH_IT_REMOTE="origin"
|
||||
fi
|
||||
if [ -z "$BASH_IT_DEVELOPMENT_BRANCH" ]; then
|
||||
BASH_IT_DEVELOPMENT_BRANCH="master"
|
||||
fi
|
||||
# Defaults to stable update
|
||||
if [ -z "$1" ] || [ "$1" == "stable" ]; then
|
||||
version="stable"
|
||||
|
|
@ -192,7 +195,7 @@ _bash-it_update-() {
|
|||
fi
|
||||
else
|
||||
version="dev"
|
||||
TARGET=${BASH_IT_REMOTE}/master
|
||||
TARGET=${BASH_IT_REMOTE}/${BASH_IT_DEVELOPMENT_BRANCH}
|
||||
fi
|
||||
|
||||
git fetch $BASH_IT_REMOTE --tags &> /dev/null
|
||||
|
|
|
|||
|
|
@ -18,6 +18,10 @@ export BASH_IT_THEME='bobby'
|
|||
# cloned bash-it with a remote other than origin such as `bash-it`.
|
||||
# export BASH_IT_REMOTE='bash-it'
|
||||
|
||||
# (Advanced): Change this to the name of the main development branch if
|
||||
# you renamed it or if it was changed for some reason
|
||||
# export BASH_IT_DEVELOPMENT_BRANCH='master'
|
||||
|
||||
# Your place for hosting Git repos. I use this for private repos.
|
||||
export GIT_HOSTING='git@git.domain.com'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue