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/shrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sh/shrc') diff --git a/sh/shrc b/sh/shrc index 3e657d4c..deb55cc2 100644 --- a/sh/shrc +++ b/sh/shrc @@ -6,8 +6,7 @@ esac # Load all the POSIX-compatible functions from ~/.shrc.d; more advanced shells # like bash will have their own functions -for shrc in "$HOME"/.shrc.d/*.sh ; do - [ -e "$shrc" ] || continue - . "$shrc" +for sh in "$HOME"/.shrc.d/*.sh ; do + [ -e "$sh" ] && . "$sh" done -unset -v shrc +unset -v sh -- cgit v1.2.3