From: Harald Hoyer Date: Wed, 11 Nov 2015 10:49:34 +0000 (+0100) Subject: dracut.sh: quote $outfile on error removal X-Git-Tag: 044~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cc5e92e210d8eba1bce3068ca2be96b2427862d;p=thirdparty%2Fdracut.git dracut.sh: quote $outfile on error removal --- diff --git a/dracut.sh b/dracut.sh index 9ba481b7f..116903701 100755 --- 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