From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qs11I-0004LH-UP for garchives@archives.gentoo.org; Fri, 12 Aug 2011 23:20:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69EA221C288; Fri, 12 Aug 2011 23:17:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3C4BE21C204 for ; Fri, 12 Aug 2011 23:17:57 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D00A91B4046 for ; Fri, 12 Aug 2011 23:17:55 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 5B0B28004F for ; Fri, 12 Aug 2011 23:17:54 +0000 (UTC) From: "Liam McLoughlin" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Liam McLoughlin" Message-ID: <5010a66fb5f1213650410f6fa737dc6db96d8b37.hexxeh@gentoo> Subject: [gentoo-commits] proj/gentoaster:master commit in: / X-VCS-Repository: proj/gentoaster X-VCS-Files: create_image.sh X-VCS-Directories: / X-VCS-Committer: hexxeh X-VCS-Committer-Name: Liam McLoughlin X-VCS-Revision: 5010a66fb5f1213650410f6fa737dc6db96d8b37 Date: Fri, 12 Aug 2011 23:17:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 6d6cc675a946f96b84b707b43030739a Message-ID: <20110812231754.KAJCDX9T0huWYRHVgIbLRmkkN2GCCfW1vJQ6CBL17eU@z> commit: 5010a66fb5f1213650410f6fa737dc6db96d8b37 Author: Liam McLoughlin hexxeh net> AuthorDate: Fri Jul 15 20:41:32 2011 +0000 Commit: Liam McLoughlin hexxeh net> CommitDate: Fri Jul 15 20:41:32 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoaster.gi= t;a=3Dcommit;h=3D5010a66f Also, let's NOT trash the log file when things go wrong. REALLY bad idea. --- create_image.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/create_image.sh b/create_image.sh index 77664f1..cc4e366 100755 --- a/create_image.sh +++ b/create_image.sh @@ -73,6 +73,7 @@ cleanup_mounts() { handle_error() { echo "$1"=20 cd ${IMAGE_WORK_PATH} + mv ${LOG_FILE} ${IMAGES_OUTPUT_PATH}/${BUILD_ID}.log || handle_error "E= rror moving log file" cleanup_mounts && rm -rf ${IMAGE_WORK_PATH} exit 1 }