diff --git a/lib/helpers.bash b/lib/helpers.bash index 0f9e51ed..b630947b 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -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"