From 3d9e0ae95400747d070932013e761aa38e5124be Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 10 Feb 2014 23:49:47 +1300 Subject: Use explicit if for condition Clearer than && --- sh/profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sh') diff --git a/sh/profile b/sh/profile index 33c5cc11..17a93772 100644 --- a/sh/profile +++ b/sh/profile @@ -7,7 +7,9 @@ export PATH # Load all supplementary scripts in ~/.profile.d if [ -d "$HOME"/.profile.d ]; then for config in "$HOME"/.profile.d/*.sh; do - [ -r "$config" ] && . "$config" + if [ -r "$config" ]; then + . "$config" + fi done fi unset -v config -- cgit v1.2.3