mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
* 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