From: Lukas Nykryn Date: Mon, 27 Apr 2015 09:38:26 +0000 (+0200) Subject: dracut-functions: use [[ ]] with -n and no quotes X-Git-Tag: 042~33^2~1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0b60c8e05adbf4a9ef8a1d3e01c15045bb33802;p=thirdparty%2Fdracut.git dracut-functions: use [[ ]] with -n and no quotes --- diff --git a/dracut-functions.sh b/dracut-functions.sh index 37ddca2d7..e154b52a2 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -977,7 +977,7 @@ inst_rules_wildcard() { _found=$_rule fi done - if [ -n ${hostonly} ] ; then + if [[ -n ${hostonly} ]] ; then for _rule in ${_target}/$1 ; do if [[ -f $_rule ]]; then inst_rule_programs "$_rule"