]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Bashify drivers_dir check
authorVictor Lowther <victor.lowther@gmail.com>
Sat, 15 Aug 2009 03:31:04 +0000 (22:31 -0500)
committerVictor Lowther <victor.lowther@gmail.com>
Sat, 15 Aug 2009 03:31:04 +0000 (22:31 -0500)
dracut

diff --git a/dracut b/dracut
index 6e470777cb8c8a84ddb2793225f2503fccda8cea..78cd2efc54b7c0f933fe7b1a585150779c5f79cb 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -136,7 +136,7 @@ esac
 [[ $1 ]] && outfile=$(readlink -f $1) || outfile="/boot/initrd-$kernel.img"
 
 srcmods="/lib/modules/$kernel/"
-[ -n "$drivers_dir" ] && srcmods="$drivers_dir"
+[[ $drivers_dir ]] && srcmods="$drivers_dir"
 export srcmods
 
 if [[ -f $outfile && ! $force ]]; then