ignore repos when ssh keys fail

This commit is contained in:
Jeff Carr 2018-01-31 01:15:33 -10:00
parent d1a8f83470
commit 3049ee6477
1 changed files with 34 additions and 25 deletions

View File

@ -41,9 +41,20 @@ gitclone()
return $result return $result
} }
gitclonefail()
{
src=$1
path=$2
gitclonefail $src $path
# make the directory on machines that don't have permissions so these
# repositories are just ignored in the future
mkdir -p $path
}
gitupdate() gitupdate()
{ {
# log_action_end_msg "$1" ${2:+"$2"}
src=$1 src=$1
path=$2 path=$2
#echo path=$path #echo path=$path
@ -76,28 +87,26 @@ witgitclone()
src='http://ping.wit.com/'$base src='http://ping.wit.com/'$base
gitclone $src $path gitclone $src $path
mkdir -p $path
# log_action_end_msg "$1" ${2:+"$2"} # log_action_end_msg "$1" ${2:+"$2"}
exit 0 exit 0
} }
gitclone 'git@github.com:witstartup/resumes.git' 'corp/resumes' gitclonefail 'git@github.com:witstartup/resumes.git' 'corp/resumes'
gitclone 'git@github.com:witstartup/org-docs.git' 'corp/org-docs' gitclonefail 'git@github.com:witstartup/org-docs.git' 'corp/org-docs'
witgitclone 'git/cloud/witcoredns' 'cloud/witcoredns' witgitclone 'git/cloud/witcoredns' 'cloud/witcoredns'
witgitclone 'git/cloud/jcarrbox' 'cloud/jcarrbox' witgitclone 'git/cloud/jcarrbox' 'cloud/jcarrbox'
witgitclone 'git/cloud/bind9dnssec' 'cloud/bind9dnssec' witgitclone 'git/cloud/bind9dnssec' 'cloud/bind9dnssec'
gitclone 'git@github.com:witstartup/debcore.git' 'cloud/debcore' gitclonefail 'git@github.com:witstartup/debcore.git' 'cloud/debcore'
gitclone 'git@github.com:witstartup/AndroidApp.git' 'phone/AndroidApp' gitclonefail 'git@github.com:witstartup/AndroidApp.git' 'phone/AndroidApp'
gitclone 'git@github.com:witstartup/webrtc-example.git' 'phone/webrtc-example' gitclonefail 'git@github.com:witstartup/webrtc-example.git' 'phone/webrtc-example'
gitclone 'git@github.com:witstartup/group-chat.git' 'phone/group-chat' gitclonefail 'git@github.com:witstartup/group-chat.git' 'phone/group-chat'
gitclone 'git@github.com:witstartup/http-https-tunnel.git' 'phone/http-https-tunnel' gitclonefail 'git@github.com:witstartup/http-https-tunnel.git' 'phone/http-https-tunnel'
gitclone 'git@github.com:witstartup/webproxy.git' 'phone/webproxy' gitclonefail 'git@github.com:witstartup/webproxy.git' 'phone/webproxy'
gitclone 'git@github.com:witstartup/VirtexEval.git' 'crypto/VirtexEval' gitclonefail 'git@github.com:witstartup/VirtexEval.git' 'crypto/VirtexEval'
gitclone 'git@github.com:witstartup/liveblock.git' 'crypto/bitcoin-liveblock' gitclonefail 'git@github.com:witstartup/liveblock.git' 'crypto/bitcoin-liveblock'
witgitclone 'git/crypto/realtime-crypto-data' 'crypto/realtime-crypto-data' witgitclone 'git/crypto/realtime-crypto-data' 'crypto/realtime-crypto-data'
witgitclone 'git/crypto/mining-binaries' 'crypto/mining-binaries' witgitclone 'git/crypto/mining-binaries' 'crypto/mining-binaries'
@ -107,7 +116,7 @@ gitclone 'https://github.com/vthoang/cgminer.git' 'crypto/mining-cod
gitclone 'https://github.com/ckolivas/cgminer.git' 'crypto/mining-code/cgminer-ckolivas' gitclone 'https://github.com/ckolivas/cgminer.git' 'crypto/mining-code/cgminer-ckolivas'
gitclone 'https://github.com/zcash/zcash.git' 'crypto/mining-code/zcash' gitclone 'https://github.com/zcash/zcash.git' 'crypto/mining-code/zcash'
gitclone 'git@github.com:witstartup/www.wit.com.git' 'website/www.wit.com' gitclonefail 'git@github.com:witstartup/www.wit.com.git' 'website/www.wit.com'
gitclone 'git@github.com:witstartup/witcoin.git' 'website/witcoin' gitclonefail 'git@github.com:witstartup/witcoin.git' 'website/witcoin'
exit 0 exit 0