From d60c50bb896ddbd73e3352505d32a8084b777c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xe=CC=81fir=20Destiny?= Date: Fri, 7 Oct 2016 19:47:43 +0200 Subject: [PATCH] """""""""" --- commands/exim_forwarddel.sh | 2 +- commands/exim_forwardlist.sh | 2 +- commands/exim_userdel.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/exim_forwarddel.sh b/commands/exim_forwarddel.sh index dc9f1eb..b3448bc 100644 --- a/commands/exim_forwarddel.sh +++ b/commands/exim_forwarddel.sh @@ -7,4 +7,4 @@ read emailto DIR=/etc/exim4/forward sed -i "s/$emailto,//g" "$DIR/$emailfrom" -[[ ! -s $DIR/$emailfrom ]] && rm -f $DIR/$emailfrom +[[ ! -s "$DIR/$emailfrom" ]] && rm -f "$DIR/$emailfrom" diff --git a/commands/exim_forwardlist.sh b/commands/exim_forwardlist.sh index c45bb0b..cc319df 100644 --- a/commands/exim_forwardlist.sh +++ b/commands/exim_forwardlist.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash DIR=/etc/exim4/forward -for file in $DIR/* +for file in "$DIR/*" do echo "$file: $(cat $DIR/$file)" done diff --git a/commands/exim_userdel.sh b/commands/exim_userdel.sh index 567d132..2eb7160 100644 --- a/commands/exim_userdel.sh +++ b/commands/exim_userdel.sh @@ -7,6 +7,6 @@ read domain DIR=/etc/exim4/domains sed -i "/$username/d" "$DIR/$domain" -[[ ! -s $DIR/$domain ]] && rm -f $DIR/$domain +[[ ! -s "$DIR/$domain" ]] && rm -f "$DIR/$domain" userdb "$username@$domain" del makeuserdb