autopush by david@ghost
This commit is contained in:
parent
11f79fe74f
commit
1482274e64
6
myzsh.sh
6
myzsh.sh
|
@ -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
|
||||
|
|
Reference in New Issue