mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
update send_mail to feature return values (#1623)
This commit is contained in:
parent
22b4edb9fe
commit
82169cd896
6
lib.sh
6
lib.sh
@ -1527,9 +1527,13 @@ send_mail() {
|
||||
if [ -n "$RECIPIENT" ]
|
||||
then
|
||||
print_text_in_color "$ICyan" "Sending '$1' to $RECIPIENT"
|
||||
echo -e "$2" | mail --subject "NcVM - $1" "$RECIPIENT"
|
||||
if echo -e "$2" | mail --subject "NcVM - $1" "$RECIPIENT"
|
||||
then
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
zpool_import_if_missing() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user