From db5f4bc53e3b7eefcb1fa9684202246afe11f59f Mon Sep 17 00:00:00 2001 From: sose Date: Wed, 17 Jun 2020 00:25:55 -0700 Subject: [PATCH] fixed keyfile check --- basics.sh | 1 + setup.sh | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/basics.sh b/basics.sh index a7bda88..5d93459 100755 --- a/basics.sh +++ b/basics.sh @@ -3,6 +3,7 @@ ssh_command="" check_key_file() { + key_file="$(find /tilde/key | tail -n1)" if [ -f "$key_file" ] then while [ -z "$(cat $key_file | head -n1 | grep -- '-----BEGIN .* PRIVATE KEY-----')" ] diff --git a/setup.sh b/setup.sh index 8cee8ed..751e898 100755 --- a/setup.sh +++ b/setup.sh @@ -11,7 +11,6 @@ export key_file="" #configure_tilde #configure_irc -key_file="$(find /tilde/key | tail -n1)" choice="" clear