From 5e55098a1b4b6cdcb9544b998f697573a7df541b Mon Sep 17 00:00:00 2001 From: Alain Knaff Date: Thu, 19 Feb 2009 13:39:21 -0800 Subject: [PATCH] --- yaml --- r: 137059 b: refs/heads/master c: ab59d3b70f7a47987f80e153d828363faec643fe h: refs/heads/master i: 137057: 4cd5c4ca3f203187727400917e13f466db67759a 137055: c6cb075cb88e3e2b1682df83f8355df82d6e92e6 v: v3 --- [refs] | 2 +- trunk/scripts/gen_initramfs_list.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index fed82251ca77..e46f54140dc6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e4aa7ca5a2e6d44f07ceb87d9448113f5b48a334 +refs/heads/master: ab59d3b70f7a47987f80e153d828363faec643fe diff --git a/trunk/scripts/gen_initramfs_list.sh b/trunk/scripts/gen_initramfs_list.sh index 41041e4923f7..3eea8f15131b 100644 --- a/trunk/scripts/gen_initramfs_list.sh +++ b/trunk/scripts/gen_initramfs_list.sh @@ -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