Set usermotd name/version fallbacks
This commit is contained in:
parent
bb57f55a8c
commit
b481966adc
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ usermotd () {
|
||||||
# Distro name and version on Linux and macOS.
|
# Distro name and version on Linux and macOS.
|
||||||
if [ -r /etc/os-release ]
|
if [ -r /etc/os-release ]
|
||||||
then
|
then
|
||||||
echo " $(. /etc/os-release; echo "$NAME" "$VERSION")"
|
echo " $(. /etc/os-release; echo "${PRETTY_NAME:-${NAME:-${ID:-unknown}} ${VERSION:-${VERSION_ID:-??}}}")"
|
||||||
fi
|
fi
|
||||||
if [ "$(uname -s)" = "Darwin" ]
|
if [ "$(uname -s)" = "Darwin" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue