This commit is contained in:
2025-08-24 19:28:59 +05:00
parent d8af6636fa
commit e9773a44c0

View File

@@ -11,6 +11,10 @@ read_ssh_pub_key() {
local ssh_dir="${1:-$HOME/.ssh}"
local pub_key
if [ ! -d "$ssh_dir" ]; then
echo "не Директория существует"
return 1
fi
# Ищем первый .pub файл
pub_key=$(find "$ssh_dir" -maxdepth 1 -name "*.pub" -type f | head -n 1)