helpers (bugfix): replace length check with -n
parent
6be4dfdfed
commit
b0706ff7f3
|
|
@ -225,7 +225,7 @@ _bash-it-update-() {
|
||||||
cd "${BASH_IT}" || return
|
cd "${BASH_IT}" || return
|
||||||
|
|
||||||
DIFF=$(git diff --name-status)
|
DIFF=$(git diff --name-status)
|
||||||
[ ${#DIFF} -gt 0 ] && echo -e "Either commit your changes using git commit, or clean them...\n$DIFF" && return 1
|
[ -n "$DIFF" ] && echo -e "Either commit your changes using git commit, or clean them...\n$DIFF" && return 1
|
||||||
|
|
||||||
if [ -z "$BASH_IT_REMOTE" ]; then
|
if [ -z "$BASH_IT_REMOTE" ]; then
|
||||||
BASH_IT_REMOTE="origin"
|
BASH_IT_REMOTE="origin"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue