Commit 94857104 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix md5sum (correct overwrite hardlinked file)

parent b7856d39
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Author: Vitaly Lipatov <lav@etersoft.ru> # Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain # Public domain
ETERBUILDVERSION=185 ETERBUILDVERSION=186
SUDO="sudo" SUDO="sudo"
......
...@@ -78,8 +78,10 @@ make_md5sum() ...@@ -78,8 +78,10 @@ make_md5sum()
{ {
cd "$1" cd "$1"
if [ -n "$2" ] ; then if [ -n "$2" ] ; then
rm -f $2.md5
md5sum -b $2 > $2.md5 md5sum -b $2 > $2.md5
else else
rm -f MD5SUM
md5sum -b * >MD5SUM md5sum -b * >MD5SUM
fi fi
cd - cd -
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment