From a05d4255be1755bbe7b23403d9d581d41e9386fb Mon Sep 17 00:00:00 2001 From: Dmitry Badovsky Date: Sun, 26 Oct 2025 19:48:07 +0000 Subject: [PATCH] Update vmcreate1.sh --- vmcreate1.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vmcreate1.sh b/vmcreate1.sh index 5bb72e2..4f41110 100644 --- a/vmcreate1.sh +++ b/vmcreate1.sh @@ -113,6 +113,16 @@ while getopts "a:f:hk:u:p:d:t:" opt; do esac done +# DEBUG Print specified options +if [[ -v $harule ]]; then echo "harule: $harule"; fi +if [[ -v $file ]]; then echo "file: $file"; fi +if [[ -v $pubkey ]]; then echo "pubkey: $pubkey"; fi +if [[ -v $username ]]; then echo "username: $username"; fi +if [[ -v $password ]]; then echo "password: $password"; fi +if [[ -v $size ]]; then echo "size: $size"; fi +if [[ -v $tag ]]; then echo "tag: $tag"; fi +# END DEBUG + # Удаляем обработанные опции, оставляя только аргументы скрипта shift "$((OPTIND - 1))" echo "DEBUG options amount: $#"