From: Nicolas Boisselier Date: Sun, 7 Jul 2019 00:24:33 +0000 (+0100) Subject: etc/profile.d/pdsh.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=fc92cd7928721708c0ad8d00eae74873e52f977a;p=nb.git etc/profile.d/pdsh.sh --- 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