From 9d6eab06055d26a22384d7aca34214cbcd904584 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 18 Feb 2017 21:32:35 +1300 Subject: Use short-circuits in .profile.d scripts --- sh/profile.d/games.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sh/profile.d/games.sh') 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 -- cgit v1.2.3