From da073295d0c20e4f264e6a348d8ab1bdfb4a4d33 Mon Sep 17 00:00:00 2001 From: Johann Wagner Date: Tue, 12 Sep 2023 21:54:10 +0200 Subject: [PATCH] testers.testVersion: Fix usage of hyphens within the version argument --- pkgs/build-support/testers/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/testers/default.nix b/pkgs/build-support/testers/default.nix index 3ff52ed0178c..fc10597e3e12 100644 --- a/pkgs/build-support/testers/default.nix +++ b/pkgs/build-support/testers/default.nix @@ -61,7 +61,7 @@ version ? package.version, }: runCommand "${package.name}-test-version" { nativeBuildInputs = [ package ]; meta.timeout = 60; } '' if output=$(${command} 2>&1); then - if grep -Fw "${version}" - <<< "$output"; then + if grep -Fw -- "${version}" - <<< "$output"; then touch $out else echo "Version string '${version}' not found!" >&2