Added -r flag in initify and cinitify to not auto-pull
This commit is contained in:
parent
b98730f6f9
commit
c88d2bb540
27
bashrc
27
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
|
||||
|
Loading…
Reference in New Issue
Block a user