Fixed *initify

This commit is contained in:
Austen Adler 2014-08-04 16:37:19 -04:00
parent d8d819216e
commit 1edb0b7cb1

28
bashrc
View File

@ -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
echo -n "Pull from: "
read from
git pull $FROM
git checkout master
fi
done
if [[ ! $3 == "-r" ]] ; then
echo -n "Pull from: "
read from
git pull $FROM
git checkout master
fi
}
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
echo -n "Pull from: "
read from
git pull $FROM
git checkout master
fi
done
if [[ ! $3 == "-r" ]] ; then
echo -n "Pull from: "
read from
git pull $FROM
git checkout master
fi
}
export -f initify