From 1540dc9c60679edb69ce21832fcaf5e9ea8e8893 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 10 Jun 2020 23:05:20 +1200 Subject: Adjust ~/.hushlogin test in login welcome script --- sh/profile.d/welcome.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sh') diff --git a/sh/profile.d/welcome.sh b/sh/profile.d/welcome.sh index 22cdde93..16eff541 100644 --- a/sh/profile.d/welcome.sh +++ b/sh/profile.d/welcome.sh @@ -7,8 +7,8 @@ esac # Only if not in a tmux window [ -z "$TMUX" ] || return -# Not if ~/.hushlogin exists -[ -e "$HOME"/.hushlogin ] && return +# Only if ~/.hushlogin doesn't exist +! [ -e "$HOME"/.hushlogin ] || return # Run all of this in a subshell to clear it away afterwards ( -- cgit v1.2.3