Update vmcreate1.sh

This commit is contained in:
2025-10-26 19:48:07 +00:00
parent d65d0a1345
commit a05d4255be

View File

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