dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 1c749875a04fa335c3f5869fce276132b4213ce5
parent ed264146b8e4b93a49c6bfa33f9283444a2adb82
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun,  5 Jan 2020 15:02:57 -0500

Use $HOME to set $LOGNAME if logname fails

Diffstat:
Metc/profile.d/logname.sh | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/etc/profile.d/logname.sh b/etc/profile.d/logname.sh @@ -1,2 +1,7 @@ -LOGNAME=$(logname) +if logname > /dev/null 2>&1 +then + LOGNAME=$(logname) +else + LOGNAME=$(basename $HOME) +fi export LOGNAME