From: tfheen Date: Wed, 21 Sep 2011 11:16:01 +0000 (+0000) Subject: Look for more md5 alternatives in link-dotfiles X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7dcce7a959331d871b25f1eadf1d0397c82f2aa;p=dotfiles Look for more md5 alternatives in link-dotfiles git-svn-id: file:///svn/tfheen/trunk/dotfiles@1483 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/link-dotfiles b/link-dotfiles index 42e40a3..72e5509 100755 --- a/link-dotfiles +++ b/link-dotfiles @@ -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