Update vmcreate1.sh

This commit is contained in:
2025-10-26 14:54:01 +00:00
parent 7790c0c717
commit 965f86e363

View File

@@ -169,7 +169,7 @@ get_vmid(){
if [ -v pubkey ]; then if [ -v pubkey ]; then
if [[ ! -f pubkey ]]; then if [[ ! -f pubkey ]]; then
input=y input=y
echo "Private key does not exist. Generate new pair? y/n" echo "Public key does not exist. Generate new pair? y/n"
read input read input
case $input in case $input in
y) read -p "Enter name for your private key: " privkey && keypair_generate "$privkey";; y) read -p "Enter name for your private key: " privkey && keypair_generate "$privkey";;