Stop motd running twice

This commit is contained in:
Anthony Rose 2022-08-18 08:49:32 +01:00
parent a4bcc82a42
commit 9b85df20ff

View file

@ -61,8 +61,11 @@ done
umask 0022 umask 0022
if [ -z "$ZSH_VERSION" ]
then
set -o emacs set -o emacs
set -o noclobber set -o noclobber
fi
# Locale and language. # Locale and language.
## Clear the existing locale settings and set options I always want. ## Clear the existing locale settings and set options I always want.
@ -271,6 +274,11 @@ then
fi fi
usermotd () { usermotd () {
if [ -n "$_acp_motd_shown" ]
then
exit 1
fi
export _acp_motd_shown=1
printf "\033[7m"; uname -sr; printf "\033[0m" printf "\033[7m"; uname -sr; printf "\033[0m"
if [ -r /etc/os-release ] if [ -r /etc/os-release ]
then then