Skip to content

Commit 5e69b4e

Browse files
authored
Merge pull request #260 from github/snh/pserror
Ignore errors from ps
2 parents ea4bca1 + e22f682 commit 5e69b4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/github-backup-utils/ghe-detect-leaked-ssh-keys

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ while [ $# -gt 0 ]; do
3434
shift
3535
done
3636

37-
ppid_script=$(ps -o args= $PPID | awk '{print $2}')
37+
ppid_script=$(ps -o args= $PPID 2>/dev/null | awk '{print $2}')
3838
if [ -n "$ppid_script" ]; then
3939
ppid_name=$(basename $ppid_script)
4040
fi

0 commit comments

Comments
 (0)