]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - dracut
dracut: don't skip zero-length string outfile argument
[thirdparty/dracut.git] / dracut
diff --git a/dracut b/dracut
index 6b67dc0392aa0528c63cecf4bdaf7e8552dae949..c16b2221f2d6da8ff153ac2f15d8f6e8d6ab982a 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -237,7 +237,7 @@ while (($# > 0)); do
                        ;;
         -*) printf "\nUnknown option: %s\n\n" "$1" >&2; usage; exit 1;;
         *) 
-            if ! [[ $outfile ]]; then
+            if ! [[ ${outfile+x} ]]; then
                 outfile=$1
             elif [[ $kernel = "unset" ]]; then
                 kernel=$1