From de4d5b302c9bf5629f4281c1d98274fb43ac7de0 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Thu, 10 Jun 2021 14:31:25 +0200 Subject: [PATCH] elif instead of else if Co-authored-by: Alexandre Aubin --- conf/backup-with-borg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/backup-with-borg b/conf/backup-with-borg index ba51e1b..2a42a36 100644 --- a/conf/backup-with-borg +++ b/conf/backup-with-borg @@ -77,7 +77,7 @@ mailalert="$(sudo yunohost app setting ${borg_id} mailalert)" if [[ ! -z "$errors" && $mailalert != "never" ]]; then cat <(echo -e "$errors\n\n\n") "$log_file" "$err_file" | mail -s "[borg] Backup failed from $domain onto $repository" root exit 1 -else if [ $mailalert == "always" ] +elif [ $mailalert == "always" ] cat $log_file | mail -s "[borg] Backup succeed from $domain onto $repository" root exit 0 fi