mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 20:00:58 +01:00
13 lines
272 B
Bash
Executable File
13 lines
272 B
Bash
Executable File
#!/bin/sh
|
|
file=$1
|
|
if type md5 > /dev/null 2>&1; then
|
|
md5 -q $*
|
|
elif type md5sum > /dev/null 2>&1; then
|
|
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
|