From: tfheen Date: Sun, 4 May 2003 20:17:38 +0000 (+0000) Subject: Try to detect missing md5sum better. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3196f6195cee079508b60c6aa177ff9e0fc72c07;p=dotfiles Try to detect missing md5sum better. git-svn-id: file:///svn/tfheen/trunk/dotfiles@141 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/link-dotfiles b/link-dotfiles index 36c51ed..653cd60 100755 --- a/link-dotfiles +++ b/link-dotfiles @@ -11,7 +11,7 @@ KNOWNMD5SUMS="b5239e7dfbecaf832e18a5377b794b09 40b31b69676f239da8a2c7f0b375b879 DOTFILESDIR=$HOME/dotfiles MD5SUM=`which md5sum` -if test -z "$MD5SUM"; then +if test -z "$MD5SUM" || ! test -x "$MD5SUM"; then MD5SUM=`which md5` fi @@ -20,7 +20,7 @@ if test ! -d $DOTFILESDIR; then exit 1 fi -if test -z "$MD5SUM"; then +if test -z "$MD5SUM" || ! test -x "$MD5SUM"; then echo "Cannot find md5sum program" exit 1 fi