1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borg_ynh.git synced 2024-09-03 18:16:05 +02:00

elif instead of else if

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
ljf (zamentur) 2021-06-10 14:31:25 +02:00
parent 05662efa13
commit de4d5b302c

View file

@ -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