MAINTAINERS - Standardize style
[sfrench/cifs-2.6.git] / scripts / gen_initramfs_list.sh
index 41041e4923f7d609da0516a867787f2d6360ffde..3eea8f15131bcde957bc0fc9699bd5f47934f62a 100644 (file)
@@ -292,7 +292,8 @@ if [ ! -z ${output_file} ]; then
        if [ "${is_cpio_compressed}" = "compressed" ]; then
                cat ${cpio_tfile} > ${output_file}
        else
-               cat ${cpio_tfile} | ${compr}  - > ${output_file}
+               (cat ${cpio_tfile} | ${compr}  - > ${output_file}) \
+               || (rm -f ${output_file} ; false)
        fi
        [ -z ${cpio_file} ] && rm ${cpio_tfile}
 fi