]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions: use [[ ]] with -n and no quotes 59/head
authorLukas Nykryn <lnykryn@redhat.com>
Mon, 27 Apr 2015 09:38:26 +0000 (11:38 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Mon, 27 Apr 2015 09:40:54 +0000 (11:40 +0200)
dracut-functions.sh

index 37ddca2d7db10fd8c4af3f241debc217633d3a3f..e154b52a2e6409ad9a603df7ef76d3f06b9e6dd1 100755 (executable)
@@ -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"