From 0cb28ce1c1bb56894411da88d0ecdeed0da19d0b Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 7 Feb 2017 15:30:29 +0000 Subject: [PATCH] etc/profile.d/mac.sh --- etc/profile.d/mac.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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/" } -- 2.47.3