From 8e9c32b70db006676bcf15313068e78248721fd0 Mon Sep 17 00:00:00 2001 From: George Danchev Date: Fri, 15 Jul 2011 18:05:14 +0000 Subject: [PATCH] on cleanup, do cleanup and exit, only check for KEEP --- libisoburn/trunk/releng/inc/releng_getopts.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libisoburn/trunk/releng/inc/releng_getopts.inc b/libisoburn/trunk/releng/inc/releng_getopts.inc index 00d61e9c..0263ca12 100644 --- a/libisoburn/trunk/releng/inc/releng_getopts.inc +++ b/libisoburn/trunk/releng/inc/releng_getopts.inc @@ -37,7 +37,8 @@ unboldify() { ############################################# cleanup() { - if [ ${KEEP} -eq 0 -a ${CLEANUP} -eq 1 ]; then +# if [ ${KEEP} -eq 0 -a ${CLEANUP} -eq 1 ]; then + if [ ${KEEP} -eq 0 ]; then # safety net, just in case -> we want to be in the starting # directory before removing whatever self-generated stuff if [ -d "${GEN_DATA_DIR}" ]; then @@ -138,6 +139,8 @@ do elif test x"$i" = x"-c" then CLEANUP=1 + cleanup + exit 0 elif test x"$i" = x"-f" then SIMULATE_FAILURE=1