We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5d3c1d0 + fa68311 commit d3c442fCopy full SHA for d3c442f
1 file changed
share/github-backup-utils/ghe-backup-repositories-rsync
@@ -76,7 +76,7 @@ echo "
76
while [ \$sanity -lt $GHE_GIT_COOLDOWN_PERIOD ]; do
77
# note: the bracket synta[x] below is to prevent matches against the
78
# grep process itself.
79
- if ps axo pid,args | grep -q -e 'git.*nw-repac[k]' -e 'git.*g[c]'; then
+ if ps axo args | grep -q -E -e '^git( -.*)? nw-repac[k]( |$)' -e '^git( -.*)? g[c]( |$)'; then
80
sleep 1
81
sanity=\$(( sanity + 1 ))
82
else
0 commit comments