docker + circleci autobuild; fixed a bug when missing Projects directory
This commit is contained in:
32
setup/git.zsh
Normal file
32
setup/git.zsh
Normal file
@ -0,0 +1,32 @@
|
||||
#####################################################################
|
||||
|
||||
SETUP__GIT() {
|
||||
__STATUS 'updating remotes for .wryn'
|
||||
cd $DOTWRYN_PATH
|
||||
git remote rm origin 2>/dev/null
|
||||
git remote add origin git@github.com:wrynegade/dotwryn.git
|
||||
git remote set-url --add --push origin git@github.com:wrynegade/dotwryn.git
|
||||
git remote set-url --add --push origin git@yage.io:wrynegade/dotwryn.git
|
||||
git remote set-url --add --push origin git@bitbucket.org:wrynegade/dotwryn.git
|
||||
|
||||
__STATUS 'updating upstream for zsh/plugins/code-activator'
|
||||
cd $DOTWRYN_PATH/zsh/plugins/code-activator
|
||||
git remote rm upstream 2>/dev/null
|
||||
git remote add upstream git@yage.io:zsh/code-activator.git
|
||||
git remote set-url --add --push upstream git@yage.io:zsh/code-activator.git
|
||||
git remote set-url --add --push upstream git@github.com:wrynegade/code-activator-zsh.git
|
||||
|
||||
__STATUS 'updating upstream for zsh/plugins/scwrypts'
|
||||
cd $DOTWRYN_PATH/zsh/plugins/scwrypts
|
||||
git remote rm upstream 2>/dev/null
|
||||
git remote add upstream git@yage.io:zsh/code-activator
|
||||
git remote set-url --add --push upstream git@yage.io:zsh/code-activator
|
||||
git remote set-url --add --push upstream git@github.com:wrynegade/scwrypts.git
|
||||
|
||||
__STATUS 'updating upstream for zsh/plugins/ssh'
|
||||
cd $DOTWRYN_PATH/zsh/plugins/ssh
|
||||
git remote rm upstream
|
||||
git remote add upstream git@yage.io:zsh/ssh.git
|
||||
|
||||
cd $DOTWRYN_PATH
|
||||
}
|
@ -31,6 +31,7 @@ SCWRYPTS() {
|
||||
#####################################################################
|
||||
|
||||
source "$DOTWRYN_PATH/setup/os.zsh"
|
||||
source "$DOTWRYN_PATH/setup/git.zsh"
|
||||
source "$DOTWRYN_PATH/setup/config.zsh"
|
||||
|
||||
#####################################################################
|
||||
|
@ -20,7 +20,8 @@ LOGFILE="$HOME/dotwryn-install.log"
|
||||
__INFO "installation start : $(date)" 2>> "$LOGFILE"
|
||||
{
|
||||
SETUP__OS || __FAIL 1 'failed to set up os-dependencies (see above)'
|
||||
SETUP__CONFIG || __FAIL 2 'failed to set up program configuration (see above)'
|
||||
SETUP__GIT || __FAIL 2 'failed to set up git (see above)'
|
||||
SETUP__CONFIG || __FAIL 3 'failed to set up program configuration (see above)'
|
||||
} 2>&1 | tee --append "$LOGFILE"
|
||||
|
||||
__INFO "installation complete: $(date)" 2>> "$LOGFILE"
|
||||
|
Reference in New Issue
Block a user