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: $#"