From 6b8a8c92daf68f6a729304959dc86b7ddc134480 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 10 Mar 2005 17:32:09 +0000 Subject: [PATCH] * Fix regexp to match base-32 hashes. svn path=/nixpkgs/trunk/; revision=2375 --- pkgs/stdenv/generic/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 471ef9a9e417..0115b78cf492 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -271,7 +271,7 @@ stopLog() { # prefix `HASH-' removed, if present. stripHash() { strippedName=$(basename $1); - if echo "$strippedName" | grep -q '^[a-f0-9]\{32\}-'; then + if echo "$strippedName" | grep -q '^[a-z0-9]\{32\}-'; then strippedName=$(echo "$strippedName" | cut -c34-) fi }