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