fixed keyfile check
This commit is contained in:
parent
fc29e81880
commit
db5f4bc53e
|
@ -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-----')" ]
|
||||
|
|
Loading…
Reference in New Issue