commit 9aedc992e9dbc5cd1192fe16ae94532218aefc69 parent 2b15b30abe2aca8c23447680eec654e341d86750 Author: Petar Yotsev <petar@yotsev.xyz> Date: Tue, 14 Dec 2021 12:04:48 +0000 Fix if statement Diffstat:
M | mmv | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/mmv b/mmv @@ -26,12 +26,12 @@ failure() { \ [ -f /etc/mail/maindom ] && firstuse="false" -if [ $firstuse = "true" ] then; - echo "$domain" > /etc/mail/maindom && - echo "$domain" >> /etc/mail/domains && +if [ $firstuse = "true" ]; then + echo "$domain" > /etc/mail/maindom + echo "$domain" >> /etc/mail/domains success "Setting up email for the first time" else - echo "$domain" >> /etc/mail/domains && + echo "$domain" >> /etc/mail/domains success "Adding domain $domain to existing setup" fi