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