From c165a8f819758b7a6d77d9ddfd6ff786110662b4 Mon Sep 17 00:00:00 2001 From: myve Date: Mon, 25 Mar 2024 15:13:08 -0600 Subject: [PATCH] Update mail.sh --- mail.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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