forked from mirrors/nixpkgs
* Fix regexp to match base-32 hashes.
svn path=/nixpkgs/trunk/; revision=2375
This commit is contained in:
parent
6ec09d7357
commit
6b8a8c92da
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue