diff options
author | Erich Eckner <git@eckner.net> | 2020-08-04 13:24:10 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-08-04 13:24:10 +0200 |
commit | 87f9a890bd146796c4b794f997b504fe9e956875 (patch) | |
tree | de773659551143f4b7ab1fd1d04121097643e216 | |
parent | bf09688a765318f4467000f20e966af4efb7bca8 (diff) | |
download | shutdownasap-87f9a890bd146796c4b794f997b504fe9e956875.tar.xz |
shutdownasap.conf: simplify additionalWatchHookFast()
-rwxr-xr-x | shutdownasap.conf.in | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/shutdownasap.conf.in b/shutdownasap.conf.in index d04d3ea..3ea4422 100755 --- a/shutdownasap.conf.in +++ b/shutdownasap.conf.in @@ -38,12 +38,9 @@ beforeWatchHook() { # This hook should return != 0, if we should keep waiting for shutdown. # Note, that it is queried often. additionalWatchHookFast() { - if command -v check-if-bareos-backup-is-running; then - if ! check-if-bareos-backup-is-running; then - return 1 - else - return 0 - fi + if command -v check-if-bareos-backup-is-running \ + && ! check-if-bareos-backup-is-running; then + return 1 fi return 0 } |