Update mail.sh

This commit is contained in:
myve 2024-03-25 15:13:08 -06:00
commit c165a8f819

10
mail.sh
View file

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