diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-02-18 21:32:35 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-02-18 21:32:35 +1300 |
commit | 9d6eab06055d26a22384d7aca34214cbcd904584 (patch) | |
tree | 0f719a0c48786a9176f237ca673fead9593499ca /sh/profile.d/games.sh | |
parent | Add missing man page section for tm(1df) iN README (diff) | |
download | dotfiles-9d6eab06055d26a22384d7aca34214cbcd904584.tar.gz dotfiles-9d6eab06055d26a22384d7aca34214cbcd904584.zip |
Use short-circuits in .profile.d scripts
Diffstat (limited to 'sh/profile.d/games.sh')
-rw-r--r-- | sh/profile.d/games.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sh/profile.d/games.sh b/sh/profile.d/games.sh index 58db3487..ee56c593 100644 --- a/sh/profile.d/games.sh +++ b/sh/profile.d/games.sh @@ -1,2 +1,3 @@ # Add ~/.local/games to PATH if it exists -[ -d "$HOME"/.local/games ] && PATH=$HOME/.local/games:$PATH +[ -d "$HOME"/.local/games ] || return +PATH=$HOME/.local/games:$PATH |