Skip to content

Commit e22f682

Browse files
committed
Ignore errors from ps
1 parent 1ce68e0 commit e22f682

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
@@ -42,7 +42,7 @@ while [ $# -gt 0 ]; do
4242
shift
4343
done
4444

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

0 commit comments

Comments
 (0)