diff --git a/vmcreate1.sh b/vmcreate1.sh index a8ccc27..ed980c9 100644 --- a/vmcreate1.sh +++ b/vmcreate1.sh @@ -196,8 +196,8 @@ if [[ $# -ne 0 ]]; then fi # Проверяем ключ -if [ -v pubkey ]; then - if [[ ! -e pubkey ]]; then +if [ -v $pubkey ]; then + if [[ ! -e "$pubkey" ]]; then input=y echo "Public key does not exist. Generate new pair? y/n" read input