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
|
# check if there is canges to be pushed
|
||||||
cd $ZSH
|
cd $ZSH
|
||||||
local SUBMODULE_SYNTAX=''
|
if [[ -n $(git status --porcelain) ]]; then
|
||||||
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
|
|
||||||
echo -n "[myzsh]: local myzsh repo is dirty. commit and push changes? [y/n]"
|
echo -n "[myzsh]: local myzsh repo is dirty. commit and push changes? [y/n]"
|
||||||
read choice
|
read choice
|
||||||
if [ $choice ]; then
|
if [ $choice ]; then
|
||||||
|
|
Reference in New Issue