X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=switch-mail-host;h=f26b945bea1a1b139a1232e08942fe8192f7a1af;hp=10fcd9f12d82c580e1ee3536c2ac51ed08e9c969;hb=343a048be4b32d18540c6531048d2b9a006774ae;hpb=50e3ebaf4941651899a3b52b5245052c3f4ed725 diff --git a/switch-mail-host b/switch-mail-host index 10fcd9f..f26b945 100644 --- a/switch-mail-host +++ b/switch-mail-host @@ -59,8 +59,8 @@ old_host=$1 new_host=$2 source /a/bin/bash_unpublished/source-state -if [[ $old_host != $MAIL_HOST ]]; then - read -p "warning: \$old_host != \$MAIL_HOST: $old_host != $MAIL_HOST, proceed? y/N " +if [[ $old_host != "$MAIL_HOST" ]]; then + read -r -p "warning: \$old_host != \$MAIL_HOST: $old_host != $MAIL_HOST, proceed? y/N " if [[ $REPLY != [yY] ]]; then exit 1 fi