From 59677e23c32521ab0a474af774481cc3f4440642 Mon Sep 17 00:00:00 2001 From: Enderson Maia Date: Tue, 21 Mar 2017 15:46:37 -0300 Subject: [PATCH] Preserve /bd_build/{cleanup.sh,buildconfig} files. See #188 Signed-off-by: Enderson Maia --- image/cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/cleanup.sh b/image/cleanup.sh index 1dd3ad0..bd53c72 100755 --- a/image/cleanup.sh +++ b/image/cleanup.sh @@ -4,7 +4,7 @@ source /bd_build/buildconfig set -x apt-get clean -ls -d -1 /bd_build/**/* | grep -v "cleanup.sh" | grep -v "buildconfig" | grep -v "services/" | xargs rm -f +find /bd_build/ -not \( -name 'bd_build' -or -name 'buildconfig' -or -name 'cleanup.sh' \) -delete rm -rf /tmp/* /var/tmp/* rm -rf /var/lib/apt/lists/*