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