OSDN Git Service

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

index 31e60a4..50ea716 100755 (executable)
@@ -382,7 +382,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
@@ -1444,6 +1444,5 @@ if [[ "${tarball}" = true ]]; then
     done
 fi
 [[ "${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