From a38c67d93be6df69e59b8dce04a18159d6b3f3c0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 17 Aug 2016 19:07:00 +1200 Subject: Use terser loop syntax in ~/.bash_profile --- bash/bash_profile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bash/bash_profile') diff --git a/bash/bash_profile b/bash/bash_profile index 76758083..9d2fd76c 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -16,9 +16,8 @@ fi # Load any supplementary scripts if [[ -d $HOME/.bash_profile.d ]] ; then for bash_profile in "$HOME"/.bash_profile.d/*.bash ; do - if [[ -e $bash_profile ]] ; then - source "$bash_profile" - fi + [[ -e $bash_profile ]] || continue + source "$bash_profile" done unset -v bash_profile fi -- cgit v1.2.3