diff --git a/bashrc b/bashrc index f740cc1..5ab6f88 100644 --- a/bashrc +++ b/bashrc @@ -161,9 +161,13 @@ function cinitify(){ git remote add oOrigin git@10.0.1.200:$1/$2.git git remote add oHttps https://10.0.1.200/gitlab/$1/$2.git git remote -v - echo -n "Pull from: " - read from - git pull $FROM + while getopts ":r" VALUE "$@"; do + if [ ! "$VALUE" = "r" ] ; then + echo -n "Pull from: " + read from + git pull $FROM + fi + done git co master } export -f cinitify @@ -175,20 +179,17 @@ function initify(){ git remote add oOrigin git@10.0.1.200:$1/$2.git git remote add oHttps https://10.0.1.200/gitlab/$1/$2.git git remote -v - echo -n "Pull from: " - read from - git pull $FROM + while getopts ":r" VALUE "$@"; do + if [ ! "$VALUE" = "r" ] ; then + echo -n "Pull from: " + read from + git pull $FROM + fi + done git co master } export -f initify - - - - - - - #Color definitions txtblk='\[\e[0;30m\]' # Black - Regular txtred='\[\e[0;31m\]' # Red