* Fix regexp to match base-32 hashes.
svn path=/nixpkgs/trunk/; revision=2375
This commit is contained in:
@@ -271,7 +271,7 @@ stopLog() {
|
|||||||
# prefix `HASH-' removed, if present.
|
# prefix `HASH-' removed, if present.
|
||||||
stripHash() {
|
stripHash() {
|
||||||
strippedName=$(basename $1);
|
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-)
|
strippedName=$(echo "$strippedName" | cut -c34-)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user