From 21112dd7ce0a9aed6e5a88bf1605f5ff21e003d2 Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Mon, 18 Jul 2005 20:20:16 +0000 Subject: [PATCH] Cleanup tmpdirs if genkernel dies abnormally git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@270 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- gen_funcs.sh | 3 +++ genkernel | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gen_funcs.sh b/gen_funcs.sh index 21d35f3..dcc48bf 100755 --- a/gen_funcs.sh +++ b/gen_funcs.sh @@ -225,6 +225,9 @@ gen_die() { print_info 1 'Please do *not* report compilation failures as genkernel bugs!' print_info 1 '' exit 1 + + # Cleanup temp dirs and caches if requested + cleanup } has_loop() { diff --git a/genkernel b/genkernel index 9c15c16..8f42f50 100755 --- a/genkernel +++ b/genkernel @@ -29,7 +29,6 @@ TEMP=${TEMP}/$RANDOM.$RANDOM.$RANDOM.$$ cleanup(){ if [ -n "$TEMP" -a -d "$TEMP" ]; then - echo "Removing $TEMP" rm -rf "$TEMP" fi -- 2.26.2