]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/pdsh.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 27 Apr 2025 07:54:05 +0000 (09:54 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 27 Apr 2025 07:54:05 +0000 (09:54 +0200)
etc/profile.d/pdsh.sh

index 6ade435396a3a2ed466e677b78579c46836f4fb3..27a0f809ddd46ec6e56e3045639dda41fadcde4f 100644 (file)
@@ -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