Update vmcreate1.sh

This commit is contained in:
2025-10-26 20:00:05 +00:00
parent 033c828bc5
commit e8acf334f0

View File

@@ -101,14 +101,14 @@ mksnippet(){
# Обрабатываем опции # Обрабатываем опции
while getopts "a:f:hk:u:p:d:t:" opt; do while getopts "a:f:hk:u:p:d:t:" opt; do
case $opt in case $opt in
a) harule="$OPTARG";; a) harule=${OPTARG};;
f) file="$OPTARG" ;; f) file=${OPTARG};;
h) show_help; exit 0;; h) show_help; exit 0;;
k) pubkey="$OPTARG";; k) pubkey=${OPTARG};;
u) username="$OPTARG";; u) username=${OPTARG};;
p) password="$OPTARG";; p) password=${OPTARG};;
d) size="$OPTARG";; d) size=${OPTARG};;
t) tag=,"$OPTARG";; t) tag=${OPTARG};;
\?) echo "Invalid option."; show_help; exit 1;; \?) echo "Invalid option."; show_help; exit 1;;
esac esac
done done