aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-17 15:13:54 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-17 15:13:54 +1300
commit8ef8c5ec49d3722888d61084be2f06a9d8a17329 (patch)
tree683252cbfb7f333e11106534da8da4161997d570 /sh/profile.d
parentAdjust PS1-PS4 reset (diff)
downloaddotfiles-8ef8c5ec49d3722888d61084be2f06a9d8a17329.tar.gz
dotfiles-8ef8c5ec49d3722888d61084be2f06a9d8a17329.zip
Follow ShellCheck's recommendation of -z over !-n
I think !-n is a little clearer, but -z is OK.
Diffstat (limited to 'sh/profile.d')
-rw-r--r--sh/profile.d/welcome.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/profile.d/welcome.sh b/sh/profile.d/welcome.sh
index cdd41edb..22cdde93 100644
--- a/sh/profile.d/welcome.sh
+++ b/sh/profile.d/welcome.sh
@@ -20,7 +20,7 @@ esac
# Show a fortune
if welcome fortune ; then
- if ! [ -n "$FORTUNE_PATH"] &&
+ if [ -z "$FORTUNE_PATH" ] &&
[ -d "$HOME"/.local/share/games/fortunes ] ; then
FORTUNE_PATH=$HOME/.local/share/games/fortunes
fi