]> err.no Git - dotfiles/commitdiff
Look for more md5 alternatives in link-dotfiles
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Wed, 21 Sep 2011 11:16:01 +0000 (11:16 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Wed, 21 Sep 2011 11:16:01 +0000 (11:16 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@1483 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

link-dotfiles

index 42e40a3fea2fa914cc54acf953c2433c5276b399..72e5509f3702679efef35f630242dc9653b1cb1d 100755 (executable)
@@ -47,13 +47,18 @@ MD5SUM=`which md5sum`
 if test -z "$MD5SUM" || ! test -x "$MD5SUM"; then
     MD5SUM=`which md5`
 fi
+if test -z "$MD5SUM" || ! test -x "$MD5SUM"; then
+    MD5SUM=`which openssl`
+    if test -x "$MD5SUM"; then
+       MD5SUM="$MD5SUM md5"
+fi
 
 if test ! -d $DOTFILESDIR; then
     echo "$DOTFILESDIR does not exist!  exiting"
     exit 1
 fi
 
-if test -z "$MD5SUM" || ! test -x "$MD5SUM"; then
+if test -z "$MD5SUM"; then
     echo "Cannot find md5sum program"
     exit 1
 fi