1
0
mirror of https://github.com/drwetter/testssl.sh.git synced 2025-07-19 20:21:45 +02:00

Merge pull request from geert-hendrickx-be/3.1dev

`hostname` is not defined by POSIX, use portable `uname -n` instead.
This commit is contained in:
Dirk Wetter
2020-08-26 18:59:43 +02:00
committed by GitHub

@ -136,7 +136,7 @@ declare -r PROG_NAME="$(basename "$0")"
declare -r RUN_DIR="$(dirname "$0")"
declare -r SYSTEM="$(uname -s)"
declare -r SYSTEMREV="$(uname -r)"
HNAME="$(hostname)"
HNAME="$(uname -n)"
HNAME="${HNAME%%.*}"
declare CMDLINE
CMDLINE_PARSED="" # This makes sure we don't let early fatal() write into files when files aren't created yet