]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/mac.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 7 Feb 2017 15:30:29 +0000 (15:30 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 7 Feb 2017 15:30:29 +0000 (15:30 +0000)
etc/profile.d/mac.sh

index dae97ef5ca8d69c000b393695cf7a81a1afd9157..18be8b61dbe659bd24a73fe2bccd4fbdcddc2d51 100644 (file)
@@ -110,7 +110,11 @@ mac_user_top_proc() {
 }
 
 md5sum() {
-  which md5sum && (eval "$(which md5sum) $@"; return)
+  #which md5sum && (eval "$(which md5sum) $@"; return)
+  if which md5sum; then
+    eval "$(which md5sum) $@"
+    return
+  fi
   md5 "$@" | sed "s/^MD5 (\(.*\)) = \(.*\)$/\2  \1/"
 }