diff --git a/lib/helpers.bash b/lib/helpers.bash index bf63c362..d5537c97 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -224,6 +224,10 @@ _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\n$DIFF" && return 1 + + if [ -z "$BASH_IT_REMOTE" ]; then BASH_IT_REMOTE="origin" fi