* 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.
|
# 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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user