autopush by david@ghost
This commit is contained in:
parent
5a7010717a
commit
5de4bcea44
2
myzsh.sh
2
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
|
||||
|
|
Reference in New Issue