schematics.sh: Remove old keys for github.com
This commit is contained in:
parent
31db1206c9
commit
acc20b12f0
1 changed files with 5 additions and 2 deletions
|
@ -5,12 +5,15 @@
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
ssh-keyscan github.com >> .ssh/known_hosts
|
|
||||||
folder=~/server/plugins/FastAsyncWorldEdit/schematics/
|
folder=~/server/plugins/FastAsyncWorldEdit/schematics/
|
||||||
|
hostname=github.com
|
||||||
|
|
||||||
|
ssh-keygen -R $hostname
|
||||||
|
ssh-keyscan -H $hostname >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
if [ ! -d "$folder" ]; then
|
if [ ! -d "$folder" ]; then
|
||||||
git clone --depth 1 git@github.com:kaboomserver/schematics.git $folder
|
git clone --depth 1 git@$hostname:kaboomserver/schematics.git $folder
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $folder
|
cd $folder
|
||||||
|
|
Loading…
Reference in a new issue