From: Victor Lowther Date: Sat, 14 Aug 2010 19:23:24 +0000 (-0500) Subject: Bashify the code that actually sources out config files. X-Git-Tag: 008~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6438b4fedf54bd9a13ec26ef5d98ce2e5e17b813;p=thirdparty%2Fdracut.git Bashify the code that actually sources out config files. Just some trivial bashification. --- diff --git a/dracut b/dracut index a65398104..33d802a0e 100755 --- a/dracut +++ b/dracut @@ -144,9 +144,9 @@ fi [[ -f $conffile ]] && . "$conffile" # source our config dir -if [ "$confdir" ] && [ -d "$confdir" ]; then +if [[ $confdir && -d $confdir ]]; then for f in "$confdir"/*.conf; do - [ -e "$f" ] && . "$f" + [[ -e $f ]] && . "$f" done fi