From 14062a6b6748241e84bae7fe2342ba5c81cc4e6b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 18 Aug 2016 11:20:17 +1200 Subject: Use consistent syntax for sh source loops --- sh/profile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sh/profile') diff --git a/sh/profile b/sh/profile index aced40c2..5dfe0ef3 100644 --- a/sh/profile +++ b/sh/profile @@ -4,11 +4,10 @@ if [ -d "$HOME"/.local/bin ] ; then fi # Load all supplementary scripts in ~/.profile.d -for profile in "$HOME"/.profile.d/*.sh ; do - [ -e "$profile" ] || continue - . "$profile" +for sh in "$HOME"/.profile.d/*.sh ; do + [ -e "$sh" ] && . "$sh" done -unset -v profile +unset -v sh # If ENV is unset after running those scripts and ~/.shrc exists, set it as ENV if [ -z "$ENV" ] && [ -f "$HOME"/.shrc ] ; then -- cgit v1.2.3