From 142a3ba7b8170ddd7bc5a4efcad11617a69429e2 Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Thu, 13 May 2021 10:54:48 +0100 Subject: [PATCH] Remove duplicate clean --- build.sh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/build.sh b/build.sh index 461fec0..5ada4d7 100755 --- a/build.sh +++ b/build.sh @@ -275,11 +275,6 @@ set +e case "$IMAGE_TYPE" in live) - if [ "$NO_CLEAN" = "" ]; then - debug "Stage 0/3 - Clean" - run_and_log $SUDO lb clean --purge - fi - debug "Stage 1/3 - File(s)" run_and_log cp bin/kali-finish-install kali-config/common/includes.installer/ [ $? -eq 0 ] || failure @@ -322,12 +317,6 @@ case "$IMAGE_TYPE" in fi debug "kali_mirror: $kali_mirror" - if [ "$NO_CLEAN" = "" ]; then - debug "Stage 0/2 - Clean" - run_and_log $SUDO rm -rf simple-cdd/tmp - run_and_log $SUDO rm -rf simple-cdd/debian-cd - fi - debug "Stage 1/2 - File(s)" # Setup custom debian-cd to make our changes run_and_log cp -aT /usr/share/debian-cd simple-cdd/debian-cd