From eab4a85cfc5f63a2bf0e51c332b1c3d938e00b5e Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 18 Feb 2019 23:19:12 +0000 Subject: [PATCH] etc/profile.d/functions --- etc/profile.d/functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 50cf88c5..cb7de0b5 100755 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -692,7 +692,8 @@ password_create() { echo } -if ! type which > /dev/null; then +# Missing sometimes by default +if ! type which >/dev/null 2>&1; then which() { type "$1" 2>&1 -- 2.47.3