From 050c4f44540175578a723673c31e246547a7c9f7 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Tue, 12 Sep 2017 00:36:21 +1200 Subject: [PATCH] Actually ignore ourselves --- debian/changelog | 6 ++++++ molly-guard/45-obnam | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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; -- 2.30.2