david/myzsh
david
/
myzsh
Archived
1
0
Fork 0

updated myzsh.sh for repo move to socialg.it

This commit is contained in:
david 2015-11-25 19:51:46 +01:00
parent 5b84e8ba77
commit c07142fcfd
1 changed files with 5 additions and 5 deletions

View File

@ -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