]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.sh: quote $outfile on error removal
authorHarald Hoyer <harald@redhat.com>
Wed, 11 Nov 2015 10:49:34 +0000 (11:49 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 11 Nov 2015 10:49:34 +0000 (11:49 +0100)
dracut.sh

index 9ba481b7f7a7abb80efa4a2c5056257294c72b7f..11690370126d1941b3f1c3b9462884a56b7add13 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1690,9 +1690,10 @@ if ! (
             | $compress >> "$outfile"
     ); then
     dfatal "dracut: creation of $outfile failed"
-       rm -f $outfile
+    rm -f "$outfile"
     exit 1
 fi
+
 dinfo "*** Creating initrd image file '$outfile' done ***"
 
 if (( maxloglvl >= 5 )); then