diff --git a/dotfiles/lib/git-ssh.sh b/dotfiles/lib/git-ssh.sh deleted file mode 100755 index 2d896886..00000000 --- a/dotfiles/lib/git-ssh.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -# If parent command is "npm ...", then redirect stderr to /dev/null -# https://github.com/npm/npm/issues/7979#issuecomment-94953923 - -GRANDPARENT_PID=$(ps -p $PPID -o ppid=) - -if ps -p $GRANDPARENT_PID -o command= | grep -q -P "^npm"; then - ssh "$@" 2>/dev/null -else - ssh "$@" -fi