updated myzsh.sh for repo move to socialg.it
This commit is contained in:
parent
5b84e8ba77
commit
c07142fcfd
10
myzsh.sh
10
myzsh.sh
|
@ -21,21 +21,21 @@ timestamp=$(date +%s)
|
|||
if [ -r $ZSH/lastrun ];then
|
||||
lastrun=$(cat $ZSH/lastrun)
|
||||
if [ $((lastrun+604800)) -le $timestamp ]; then
|
||||
cd $ZSH; git remote -v | grep -i bitbucket >> /dev/null
|
||||
cd $ZSH; git remote -v | grep -i github >> /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
choice=""
|
||||
echo "myzsh moved to github.com. unfortunately your"
|
||||
echo "myzsh repository still points to bitbucket.org."
|
||||
echo "myzsh moved to socialg.it. unfortunately your"
|
||||
echo "myzsh repository still points to github.com."
|
||||
echo -e "do you want to fix this? [y/n] \c"
|
||||
read choice
|
||||
if [ $choice = "y" ]; then
|
||||
git remote -v | grep @ >> /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
git remote rm origin
|
||||
git remote add origin git@github.com:beyondthewall/myzsh.git
|
||||
git remote add origin git@socialg.it:david/myzsh.git
|
||||
else
|
||||
git remote rm origin
|
||||
git remote add origin https://github.com/beyondthewall/myzsh.git
|
||||
git remote add origin https://socialg.it/david/myzsh.git
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Reference in New Issue