adapt to code style of the script

This commit is contained in:
Andreas Schneider 2021-11-22 18:33:16 +01:00 • committed by GitHub
parent 75bda45809
commit 85130b4f72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -286,7 +286,7 @@ readonly LOG_DIR
# System information
HOSTNAME="$(hostname)"
# Try command hostnamectl if HOSTNAME is unset or empty
[ -z HOSTNAME ] && HOSTNAME="$(hostnamectl --static)"
[ -z "${HOSTNAME}" ] && HOSTNAME="$(hostnamectl --static)"
readonly HOSTNAME
readonly OS_FLAVOR="$(uname)"