From: Andrew Ruthven Date: Mon, 11 Sep 2017 12:36:21 +0000 (+1200) Subject: Actually ignore ourselves X-Git-Tag: v0.9 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=etc-obnam.git Actually ignore ourselves --- diff --git a/debian/changelog b/debian/changelog index abe0fa2..8312b56 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +etc-obnam (0.9) unstable; urgency=low + + * Sigh. We need to use egrep to use a regex in grep. + + -- Andrew Ruthven Tue, 12 Sep 2017 00:35:40 +1200 + etc-obnam (0.8) unstable; urgency=low * Make sure that we don't count molly-guard script called 45-obnam! diff --git a/molly-guard/45-obnam b/molly-guard/45-obnam index 7902911..884397a 100755 --- a/molly-guard/45-obnam +++ b/molly-guard/45-obnam @@ -2,7 +2,7 @@ ME=molly-guard -COUNT=$(ps ax | grep obnam | grep -v "(grep|$0)" | wc -l) +COUNT=$(ps ax | grep obnam | egrep -v "(grep|$0)" | wc -l) if [ $COUNT -eq 0 ]; then echo "I: I can't find any running obnam backups, skipping check" >&2 exit 0;