mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
testers.testVersion: Fix usage of hyphens within the version argument
This commit is contained in:
parent
629246be7f
commit
da073295d0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user