From af742511a6ba1d8dc3167a87eaa02fe953575dc7 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 28 Feb 2020 06:35:51 +0100 Subject: update-me: exit 2 if no other update-me is running --- update-me.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/update-me.in b/update-me.in index 8fedef8..4c59d66 100644 --- a/update-me.in +++ b/update-me.in @@ -23,7 +23,11 @@ case $# in rm "${safety_file}" exit 0 fi - exit 1 + if pgrep -x update-me | grep -vxF $$; then + exit 1 + else + exit 2 + fi ;; *) usage -- cgit v1.2.3-70-g09d2