mirror of
https://github.com/kaboomserver/framework.git
synced 2024-11-24 08:08:20 -05:00
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
|
||||
|
||||
ssh-keyscan github.com >> .ssh/known_hosts
|
||||
folder=~/server/plugins/FastAsyncWorldEdit/schematics/
|
||||
hostname=github.com
|
||||
|
||||
ssh-keygen -R $hostname
|
||||
ssh-keyscan -H $hostname >> ~/.ssh/known_hosts
|
||||
|
||||
while true; do
|
||||
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
|
||||
|
||||
cd $folder
|
||||
|
|
Loading…
Reference in a new issue