1
0
Fork 0
mirror of https://github.com/Luzifer/arch-update.git synced 2024-12-20 11:01:16 +00:00

Rename function to reflect there is no mail

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-03-04 23:10:29 +01:00
parent 96f139e421
commit 37d56f8de2
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -58,11 +58,6 @@ function log() { # ( message, color )
LOGLINES+=("$s")
}
function mailResult() { # ( )
IFS=$'\n'
echo "${LOGLINES[*]}" >>/var/log/arch_update.log
}
function main() { # ( )
log "Starting arch_update on $(hostname): $(feature "dry-run" $DRYRUN), $(feature "reboot" $REBOOT), $(feature "service-restart" $RESSVC)"
@ -150,6 +145,11 @@ function main() { # ( )
success "Everything finished"
}
function sendResult() { # ( )
IFS=$'\n'
echo "${LOGLINES[*]}" >>/var/log/arch_update.log
}
function success() { # ( message )
local msg="$@"
log "$msg" "${COLOR_GREEN}"
@ -183,5 +183,5 @@ while getopts ":nrs" o; do
done
shift $((OPTIND - 1))
trap mailResult EXIT
trap sendResult EXIT
main