Browse Source

dracut-functions: use [[ ]] with -n and no quotes

master
Lukas Nykryn 9 years ago
parent
commit
b0b60c8e05
  1. 2
      dracut-functions.sh

2
dracut-functions.sh

@ -977,7 +977,7 @@ inst_rules_wildcard() { @@ -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"

Loading…
Cancel
Save