From ea6d3fa2f5972966d65c87f3e6e59e3bf4b6a162 Mon Sep 17 00:00:00 2001 From: Martin Joerg Date: Sun, 3 Nov 2024 18:40:11 +0000 Subject: [PATCH] genericUpdater: silence grep in version_is_ignored version_is_ignored must not emit matching versions on stdout, as that violates the commit protocol. --- pkgs/common-updater/generic-updater.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/common-updater/generic-updater.nix b/pkgs/common-updater/generic-updater.nix index 2ebfb0fa6fc2..1ce41d732c1d 100644 --- a/pkgs/common-updater/generic-updater.nix +++ b/pkgs/common-updater/generic-updater.nix @@ -54,7 +54,7 @@ let function version_is_ignored() { local tag="$1" - [ -n "$ignored_versions" ] && ${grep} -E -e "$ignored_versions" <<< "$tag" + [ -n "$ignored_versions" ] && ${grep} -q -E -e "$ignored_versions" <<< "$tag" } function version_is_unstable() {