From a7dcce7a959331d871b25f1eadf1d0397c82f2aa Mon Sep 17 00:00:00 2001 From: tfheen Date: Wed, 21 Sep 2011 11:16:01 +0000 Subject: [PATCH] Look for more md5 alternatives in link-dotfiles git-svn-id: file:///svn/tfheen/trunk/dotfiles@1483 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- link-dotfiles | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.5