summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/dir.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dir.sh b/lib/dir.sh
index 32c92fd..b72d786 100644
--- a/lib/dir.sh
+++ b/lib/dir.sh
@@ -24,6 +24,8 @@ hash_name()
if [ "x${name}" != "x${name#lib?}" ]; then
hash="$(printf '%s\n' "${name}" | sed 's/^\(lib.\).*$/\1/')"
+ elif [ "x${name}" != "x${name#src-?}" ]; then
+ hash="$(printf '%s\n' "${name}" | sed 's/^\(src-.\).*$/\1/')"
else
hash="$(printf '%s\n' "${name}" | sed 's/^\(.\).*$/\1/')"
fi