helpers (bugfix): replace length check with -n

pull/1890/head
Gurkirat Singh 2021-06-12 03:28:40 +05:30
parent 6be4dfdfed
commit b0706ff7f3
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ _bash-it-update-() {
cd "${BASH_IT}" || return
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
BASH_IT_REMOTE="origin"