diff --git a/myzsh.sh b/myzsh.sh index 3292296..609a223 100644 --- a/myzsh.sh +++ b/myzsh.sh @@ -19,7 +19,7 @@ fi if [[ -n $(git status -s ${SUBMODULE_SYNTAX} 2> /dev/null) ]]; then echo -n "[myzsh]: local myzsh repo is dirty. commit and push changes? [y/n]" read choice - if [ -z $choice ] || [ $choice = "y" ]; then + if [ -n $choice ] && [ $choice = "y" ]; then git add **/*[^lastrun] git commit -am "autopush by $(whoami)@$(hostname)" git push origin master