summaryrefslogtreecommitdiff
path: root/shutdownasap.conf.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-08-04 13:24:10 +0200
committerErich Eckner <git@eckner.net>2020-08-04 13:24:10 +0200
commit87f9a890bd146796c4b794f997b504fe9e956875 (patch)
treede773659551143f4b7ab1fd1d04121097643e216 /shutdownasap.conf.in
parentbf09688a765318f4467000f20e966af4efb7bca8 (diff)
downloadshutdownasap-87f9a890bd146796c4b794f997b504fe9e956875.tar.xz
shutdownasap.conf: simplify additionalWatchHookFast()
Diffstat (limited to 'shutdownasap.conf.in')
-rwxr-xr-xshutdownasap.conf.in9
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
}