Commit 0462ce15 authored by Vitaly Lipatov's avatar Vitaly Lipatov

improve make_md5sum for dir support

parent 193e0daf
...@@ -77,7 +77,11 @@ copy_tarball_to_tar() ...@@ -77,7 +77,11 @@ copy_tarball_to_tar()
make_md5sum() make_md5sum()
{ {
cd "$1" cd "$1"
if [ -n "$2" ] ; then
md5sum -b $2 > $2.md5 md5sum -b $2 > $2.md5
else
md5sum -b * >MD5SUM
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