From ae48c7b4e0684c41d6fb42eb55882d2fb9aca373 Mon Sep 17 00:00:00 2001 From: Martin Berghaus Date: Sun, 23 Feb 2025 00:19:05 +0100 Subject: [PATCH] avoid permission issues if write to stderr --- core/printOwnDomain.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/printOwnDomain.sh b/core/printOwnDomain.sh index 18876a0..db1ee82 100644 --- a/core/printOwnDomain.sh +++ b/core/printOwnDomain.sh @@ -19,7 +19,7 @@ _OVERRIDE_DOMAIN="$(grep -vE '^[[:space:]]*$|^[[:space:]]*#' "${_OVERRIDE_DOMAIN ! [ -z "${_OVERRIDE_DOMAIN}" ] \ && [ "${_OVERRIDE_DOMAIN}" != "${_BOOT_DOMAIN}" ] \ - && echo "WARNING: Domain has been overridden by: ${_OVERRIDE_DOMAIN_FILE}" > /dev/stderr \ + && echo "WARNING: Domain has been overridden by: ${_OVERRIDE_DOMAIN_FILE}" >&2 \ && echo "${_OVERRIDE_DOMAIN}" \ && exit 0 @@ -27,5 +27,5 @@ _OVERRIDE_DOMAIN="$(grep -vE '^[[:space:]]*$|^[[:space:]]*#' "${_OVERRIDE_DOMAIN && echo "${_BOOT_DOMAIN}" \ && exit 0 -echo "It was impossible to find out the domain of this host, please prepare this host first." > /dev/stderr +echo "It was impossible to find out the domain of this host, please prepare this host first." >&2 exit 1