diff options
Diffstat (limited to 'update-me.in')
-rw-r--r-- | update-me.in | 6 |
1 files changed, 5 insertions, 1 deletions
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 |