From: Nicolas Boisselier Date: Tue, 7 Feb 2017 15:30:29 +0000 (+0000) Subject: etc/profile.d/mac.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=0cb28ce1c1bb56894411da88d0ecdeed0da19d0b;p=nb.git etc/profile.d/mac.sh --- diff --git a/etc/profile.d/mac.sh b/etc/profile.d/mac.sh index dae97ef5..18be8b61 100644 --- a/etc/profile.d/mac.sh +++ b/etc/profile.d/mac.sh @@ -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/" }