Browse Source

some distros use /bin for md5sum

Waldemar Brodkorb 3 years ago
parent
commit
5fc248537e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      scripts/md5sum

+ 3 - 0
scripts/md5sum

@@ -4,6 +4,9 @@
 
 if [ -x /usr/bin/md5sum ]; then
 	/usr/bin/md5sum "$@"
+else if [ -x /bin/md5sum ]; then
+	/bin/md5sum "$@"
 else
 	md5 "$@" | sed 's#MD5 (\([^)]*\)) = \(.*\)#\2  \1#'
 fi
+fi