diff --git a/virt-install-cloud.sh b/virt-install-cloud.sh index 21723ce..45985b0 100755 --- a/virt-install-cloud.sh +++ b/virt-install-cloud.sh @@ -40,10 +40,10 @@ usage() { while getopts "hcr:s:n:d:iob" opt; do case $opt in c) cpucount=("$OPTARG");; - r) ram=("$OPTARG");; + r) ram=("$OPTARG");; s) storage=("$OPTARG");; - n) hostname=("$OPTARG");; - d) domain=("$OPTARG");; + n) hostname=("$OPTARG");; + d) domain=("$OPTARG");; i) distro=("$OPTARG");; o) ostype=("$OPTARG");; b) bridge=("$OPTARG");; @@ -52,7 +52,7 @@ while getopts "hcr:s:n:d:iob" opt; do done -if [[ -z $ram || -z $storage || -z $hostname || -z $domain || -z $bridge || $help = "yes" ]]; then +if [[ -z $ram || -z $storage || -z $hostname || -z $domain || -z $bridge || $help == "yes" ]]; then echo "Error: Incorrect command usage, must provide all * flags." usage exit 1