diff --git a/mail.sh b/mail.sh index 2ea4ef6..e5d8bd9 100644 --- a/mail.sh +++ b/mail.sh @@ -19,32 +19,32 @@ function die } # Grab options -while [ ${1} != "" ] +while [ ${1} ] do case ${1} in -u | --user ) - if [ ${2} != "" ] + if [ ${2} ] then username=${2} shift fi ;; -p | --port ) - if [ ${2} != "" ] + if [ ${2} ] then ssh_port=${2} shift fi ;; -d | --domain ) - if [ ${2} != "" ] + if [ ${2} ] then domain_url=${2} shift fi ;; -m | --mail-user ) - if [ ${2} != "" ] + if [ ${2} ] then mailuser=${2} shift