OSDN Git Service

[update] : Use clean.sh instead of rm
authorhayao <shun819.mail@gmail.com>
Sun, 4 Oct 2020 02:45:34 +0000 (11:45 +0900)
committerhayao <shun819.mail@gmail.com>
Sun, 4 Oct 2020 02:45:34 +0000 (11:45 +0900)
build.sh

index 2b4c412..42344be 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -374,7 +374,7 @@ prepare_env() {
     _trap_remove_work() {
         local status=${?}
         echo
-        remove "${work_dir}"
+        "${script_path}/tools/clean.sh" -o -w $(realpath "${work_dir}") $([[ "${debug}" = true ]] && echo -n "-d")
         exit ${status}
     }
     trap '_trap_remove_work' 1 2 3 15
@@ -1517,6 +1517,6 @@ run_once make_efiboot
 [[ "${tarball}" = true ]] && run_once make_tarball
 
 [[ "${noiso}" = false ]] && run_once make_iso
-[[ "${cleaning}" = true ]] && remove "${work_dir}"
+[[ "${cleaning}" = true ]] && "${script_path}/tools/clean.sh" -o -w $(realpath "${work_dir}") $([[ "${debug}" = true ]] && echo -n "-d")
 
 exit 0