From 4763bbaaa2cf69175e88a880e957976b1c77678c Mon Sep 17 00:00:00 2001 From: fruchti Date: Fri, 10 Mar 2023 21:21:26 +0100 Subject: [PATCH] Upgrade: Catch (e.g. download) warnings as well --- options/auto-upgrade.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options/auto-upgrade.nix b/options/auto-upgrade.nix index 6d59d18..951b929 100644 --- a/options/auto-upgrade.nix +++ b/options/auto-upgrade.nix @@ -167,7 +167,7 @@ in upgrade_output="$(cat "$output_file")" rm -f "$output_file" - possible_warnings="$(${grep} -e "^trace:" <<<"$upgrade_output" || true)" + possible_warnings="$(${grep} -e "^\(warning\|trace\):" <<<"$upgrade_output" || true)" if [ "$possible_warnings" != "" ] ; then send_email=yes email_subject_additions="$email_subject_additions with warnings"