From 49d9eae97d73c90b7b5b695e5243dc2c10968650 Mon Sep 17 00:00:00 2001 From: Dmitry Badovsky Date: Sun, 26 Oct 2025 16:03:15 +0000 Subject: [PATCH] Update vmcreate1.sh --- vmcreate1.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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