From fc92cd7928721708c0ad8d00eae74873e52f977a Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sun, 7 Jul 2019 01:24:33 +0100 Subject: [PATCH] etc/profile.d/pdsh.sh --- etc/profile | 3 ++- etc/profile.d/pdsh.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/profile b/etc/profile index 876ee9e6..aa0d6f0f 100755 --- a/etc/profile +++ b/etc/profile @@ -98,7 +98,8 @@ fi if [ -z "$NB_ETC_DIR" -o "$NB_ETC_DIR" = "/" ]; then export NB_UNSUPORTED=1 nb_debug "ERR: Unsupported shell. Please use bash, ksh93 or zsh." - _nb_unset; return 71 + _nb_unset + return 71 fi unset NB_UNSUPORTED diff --git a/etc/profile.d/pdsh.sh b/etc/profile.d/pdsh.sh index aedc26c6..e30b195b 100644 --- a/etc/profile.d/pdsh.sh +++ b/etc/profile.d/pdsh.sh @@ -6,7 +6,7 @@ export PDSH_SSH_ARGS="-q" [ -r ~/.pdsh.hosts ] && export WCOLL=~/.pdsh.hosts -[ "$SHELL" = "/bin/sh" ] && return 0 +[ "$SHELL" = "/bin/bash" ] || return 0 pdsh_quiet() { exec 3> >(grep -Ev '^(pdsh@|[^ :]+: (stdio forwarding failed|channel [0-9]+: open failed))') pdsh $@ 2>&3 -- 2.47.3