]> err.no Git - dotfiles/commitdiff
Try to detect missing md5sum better.
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sun, 4 May 2003 20:17:38 +0000 (20:17 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sun, 4 May 2003 20:17:38 +0000 (20:17 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@141 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

link-dotfiles

index 36c51ed7ab4452f7371c8de049978251847bf544..653cd60f1904df6340df6fc8b3202f71983308e5 100755 (executable)
@@ -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