summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-11-22 10:08:09 +0100
committerErich Eckner <git@eckner.net>2019-11-22 10:08:09 +0100
commit700aa40bd4bf575613f5d3f54c67424daaea2436 (patch)
tree68d28cc556d8d5e51e651db1900bc53a37da345c /lib
parenta956e728d214519bc1da5aa05b93c9d8e7f35cdc (diff)
downloadbuilder-700aa40bd4bf575613f5d3f54c67424daaea2436.tar.xz
lib/load-configuration: fix exit-code logic for buildmaster-on-halt
Diffstat (limited to 'lib')
-rwxr-xr-xlib/load-configuration2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/load-configuration b/lib/load-configuration
index 05ec7d0..b6756c1 100755
--- a/lib/load-configuration
+++ b/lib/load-configuration
@@ -20,7 +20,7 @@ if [ "$(hostname)" = 'buildmaster.archlinux32.org' ]; then
# - systemd MUST NOT hickup - e.g. exit code 0,
# - connecting slaves MUST get exit code 1 and
# - interactively run commands SHOULD get exit code 1, too
- if tty -s && [ -z "${SSH_ORIGINAL_COMMAND}" ]; then
+ if tty -s || [ -n "${SSH_ORIGINAL_COMMAND}" ]; then
exit 1
else
exit 0