From 94ea1569583646c43e301034759d92c1efdd8946 Mon Sep 17 00:00:00 2001 From: Cerem Cem ASLAN Date: Fri, 15 Jan 2021 01:49:38 +0300 Subject: [PATCH] fixed harddisk leak --- link-with-server.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/link-with-server.sh b/link-with-server.sh index 6c69b3b..0a375e5 100755 --- a/link-with-server.sh +++ b/link-with-server.sh @@ -89,6 +89,7 @@ get_host_fingerprint(){ local file=$(mktemp) timeout 30 ssh-keyscan -p $port $host 2> /dev/null > $file ssh-keygen -l -f $file 2> /dev/null | grep ECDSA | awk '{print $2}' + rm "$file" } [[ -f $SSH_KEY_FILE ]] || die "No ssh key file found: $SSH_KEY_FILE"