From acc20b12f0e1bb737aed8a9128b6ead592106fe8 Mon Sep 17 00:00:00 2001 From: kaboom <58372747+kaboombot@users.noreply.github.com> Date: Tue, 17 May 2022 23:41:22 +0300 Subject: [PATCH] schematics.sh: Remove old keys for github.com --- script/schematics.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script/schematics.sh b/script/schematics.sh index 5c988c8..e823983 100755 --- a/script/schematics.sh +++ b/script/schematics.sh @@ -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