* Fix regexp to match base-32 hashes.

svn path=/nixpkgs/trunk/; revision=2375
This commit is contained in:
Eelco Dolstra 2005-03-10 17:32:09 +00:00
parent 6ec09d7357
commit 6b8a8c92da

View file

@ -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
}