summaryrefslogtreecommitdiff
path: root/shutdownasap.conf.in
diff options
context:
space:
mode:
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
}