Skip to content

Commit baa1164

Browse files
committed
Ignore errors from ps
1 parent 322791e commit baa1164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ghe-backup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if [ -f ../in-progress ]; then
6969
progress=$(cat ../in-progress)
7070
snapshot=$(echo "$progress" | cut -d ' ' -f 1)
7171
pid=$(echo "$progress" | cut -d ' ' -f 2)
72-
if ! ps -p $pid -o command= | grep ghe-backup; then
72+
if ! ps -p $pid -o command= 2>/dev/null | grep ghe-backup; then
7373
# We can safely remove in-progress, ghe-prune-snapshots
7474
# will clean up the failed backup.
7575
unlink ../in-progress

0 commit comments

Comments
 (0)