From: Nicolas Boisselier Date: Sun, 27 Apr 2025 07:54:05 +0000 (+0200) Subject: etc/profile.d/pdsh.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=7fb81599f2ef4fa19e4cd734b45bb7b0e1196eb9;p=nb.git etc/profile.d/pdsh.sh --- diff --git a/etc/profile.d/pdsh.sh b/etc/profile.d/pdsh.sh index 6ade4353..27a0f809 100644 --- a/etc/profile.d/pdsh.sh +++ b/etc/profile.d/pdsh.sh @@ -6,7 +6,7 @@ export PDSH_SSH_ARGS="-q -o ConnectTimeout=5" [ -r ~/.pdsh.hosts ] && export WCOLL=~/.pdsh.hosts -[ "$SHELL" = "/bin/bash" ] || return 0 +[ -n "$BASH" ] || return 0 pdsh_quiet() { exec 3> >(grep -Ev '^(pdsh@|([^ :]+: )?(stdio forwarding failed|channel [0-9]+: open failed))') pdsh $@ 2>&3