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
case $opt in
a) harule="$OPTARG";;
f) file="$OPTARG" ;;
h) show_help ; exit 0;;
k) pubkey="$OPTARG";;
u) username="$OPTARG";;
p) password="$OPTARG";;
d) size="$OPTARG";;
t) tag=,"$OPTARG";;
a) harule=${OPTARG};;
f) file=${OPTARG};;
h) show_help; exit 0;;
k) pubkey=${OPTARG};;
u) username=${OPTARG};;
p) password=${OPTARG};;
d) size=${OPTARG};;
t) tag=${OPTARG};;
\?) echo "Invalid option."; show_help; exit 1;;
esac
done