Fixed *initify
This commit is contained in:
parent
d8d819216e
commit
1edb0b7cb1
8
bashrc
8
bashrc
@ -162,14 +162,12 @@ 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
|
||||
while getopts ":r" VALUE "$@"; do
|
||||
if [ ! "$VALUE" = "r" ] ; then
|
||||
if [[ ! $3 == "-r" ]] ; then
|
||||
echo -n "Pull from: "
|
||||
read from
|
||||
git pull $FROM
|
||||
git checkout master
|
||||
fi
|
||||
done
|
||||
}
|
||||
export -f cinitify
|
||||
function initify(){
|
||||
@ -180,14 +178,12 @@ 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
|
||||
while getopts ":r" VALUE "$@"; do
|
||||
if [ ! "$VALUE" = "r" ] ; then
|
||||
if [[ ! $3 == "-r" ]] ; then
|
||||
echo -n "Pull from: "
|
||||
read from
|
||||
git pull $FROM
|
||||
git checkout master
|
||||
fi
|
||||
done
|
||||
}
|
||||
export -f initify
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user