david/myzsh
david
/
myzsh
Archived
1
0
Fork 0

autopush by david@ghost

This commit is contained in:
david 2017-10-04 00:29:30 +02:00
parent 11f79fe74f
commit 1482274e64
1 changed files with 1 additions and 5 deletions

View File

@ -12,11 +12,7 @@ fi
# check if there is canges to be pushed
cd $ZSH
local SUBMODULE_SYNTAX=''
if [[ $POST_1_7_2_GIT -gt 0 ]]; then
SUBMODULE_SYNTAX="--ignore-submodules=dirty"
fi
if [[ -n $(git status -s ${SUBMODULE_SYNTAX} 2> /dev/null) ]]; then
if [[ -n $(git status --porcelain) ]]; then
echo -n "[myzsh]: local myzsh repo is dirty. commit and push changes? [y/n]"
read choice
if [ $choice ]; then