pushzshconfig 20.06.2013 20:04
This commit is contained in:
parent
dcd8fa673b
commit
a4ee006615
4
myzsh.sh
4
myzsh.sh
|
@ -21,7 +21,7 @@ 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 -
|
||||
cd $ZSH; git remote -v | grep -i bitbucket >> /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
choice=""
|
||||
echo "myzsh moved to github.com. unfortunately your"
|
||||
|
@ -29,7 +29,7 @@ if [ -r $ZSH/lastrun ];then
|
|||
echo -e "do you want to fix this? [y/n] \c"
|
||||
read choice
|
||||
if [ $choice = "y" ]; then
|
||||
cd $ZSH; git remote -v | grep @ >> /dev/null
|
||||
git remote -v | grep @ >> /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
git remote rm origin
|
||||
git remote add origin git@github.com:beyondthewall/myzsh.git
|
||||
|
|
Reference in New Issue