Remove duplicate clean

merge-requests/16/head
Ben Wilson 4 years ago
parent 360ee78992
commit 142a3ba7b8

@ -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

Loading…
Cancel
Save