Merge pull request #1707 from geert-hendrickx-be/3.1dev
`hostname` is not defined by POSIX, use portable `uname -n` instead.
This commit is contained in:
commit
09fb279510
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue