]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/pdsh.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 7 Jul 2019 00:19:35 +0000 (01:19 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 7 Jul 2019 00:19:35 +0000 (01:19 +0100)
etc/profile.d/pdsh.sh

index a878158e82cedd5b3f6e96e0524a9b619f9bd532..aedc26c647b66f60b0464247d1a6c348a88581a5 100644 (file)
@@ -6,6 +6,7 @@ export PDSH_SSH_ARGS="-q"
 
 [ -r ~/.pdsh.hosts ] && export WCOLL=~/.pdsh.hosts
 
+[ "$SHELL" = "/bin/sh" ] && return 0
 pdsh_quiet() {
        exec 3> >(grep -Ev '^(pdsh@|[^ :]+: (stdio forwarding failed|channel [0-9]+: open failed))')
        pdsh $@ 2>&3