summary refs log tree commit diff
path: root/pkgs/common-updater
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2018-02-17 22:31:58 +0200
committerTuomas Tynkkynen <tuomas@tuxera.com>2018-02-17 22:34:12 +0200
commit9c852aa3deddbde1e59bc4631a11b450210db06d (patch)
treeec315c9f3e8ab118b10c22a526ca061002cb60e6 /pkgs/common-updater
parent8de132f52da85ee273823c1c89c1be8b5670b906 (diff)
downloadnixpkgs-9c852aa3deddbde1e59bc4631a11b450210db06d.tar
nixpkgs-9c852aa3deddbde1e59bc4631a11b450210db06d.tar.gz
nixpkgs-9c852aa3deddbde1e59bc4631a11b450210db06d.tar.bz2
nixpkgs-9c852aa3deddbde1e59bc4631a11b450210db06d.tar.lz
nixpkgs-9c852aa3deddbde1e59bc4631a11b450210db06d.tar.xz
nixpkgs-9c852aa3deddbde1e59bc4631a11b450210db06d.tar.zst
nixpkgs-9c852aa3deddbde1e59bc4631a11b450210db06d.zip
update-source-version: Fix regex metacharacter
In sed variety of regexes, '\|' must be used in place of '|'.
Diffstat (limited to 'pkgs/common-updater')
-rwxr-xr-xpkgs/common-updater/scripts/update-source-version2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/common-updater/scripts/update-source-version b/pkgs/common-updater/scripts/update-source-version
index ae2d023a039..4c32ae046f3 100755
--- a/pkgs/common-updater/scripts/update-source-version
+++ b/pkgs/common-updater/scripts/update-source-version
@@ -74,7 +74,7 @@ fi
 if [ -z "$newHash" ]; then
     nix-build --no-out-link -A "$attr.src" 2>"$attr.fetchlog" >/dev/null || true
     # FIXME: use nix-build --hash here once https://github.com/NixOS/nix/issues/1172 is fixed
-    newHash=$(egrep -v "killing process|dependencies couldn't be built" "$attr.fetchlog" | tail -n2 | sed "s~output path .* has .* hash \(.*\) when .* was expected|fixed-output derivation produced path '.*' with .* hash '\(.*\)' instead of the expected hash '.*'~\1\2~" | head -n1)
+    newHash=$(egrep -v "killing process|dependencies couldn't be built" "$attr.fetchlog" | tail -n2 | sed "s~output path .* has .* hash \(.*\) when .* was expected\|fixed-output derivation produced path '.*' with .* hash '\(.*\)' instead of the expected hash '.*'~\1\2~" | head -n1)
 fi
 
 if [ -z "$newHash" ]; then