mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
use openssl if no native md5 tool exists
This commit is contained in:
@@ -2,6 +2,11 @@
|
|||||||
file=$1
|
file=$1
|
||||||
if type md5 > /dev/null 2>&1; then
|
if type md5 > /dev/null 2>&1; then
|
||||||
md5 -q $*
|
md5 -q $*
|
||||||
else
|
elif type md5sum > /dev/null 2>&1; then
|
||||||
md5sum $* | awk '{print $1}'
|
md5sum $* | awk '{print $1}'
|
||||||
|
elif type openssl > /dev/null 2>&1; then
|
||||||
|
openssl md5 -r $* | awk '{print $1}'
|
||||||
|
else
|
||||||
|
echo "no MD5 tool found!"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user