diff options
Diffstat (limited to 'trunk/lib/common.sh')
-rw-r--r-- | trunk/lib/common.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh index 944e39a..2059e34 100644 --- a/trunk/lib/common.sh +++ b/trunk/lib/common.sh @@ -793,7 +793,8 @@ function update_md5_checksum { else # remove the old entry and add a new one sed -i "/ \.*\/*$(regexp_slash $file)$/d" CHECKSUMS.md5 - md5sum $file >> CHECKSUMS.md5 + file="`echo $file | sed -e 's/\.*\/*//'`" + md5sum ./$file >> CHECKSUMS.md5 fi cat CHECKSUMS.md5 | gzip -9 -c - > CHECKSUMS.md5.gz |