OSDN Git Service

[change] : Change the timing to unmount the working directory
authorhayao <hayao@fascode.net>
Sat, 14 Aug 2021 13:59:53 +0000 (22:59 +0900)
committerhayao <hayao@fascode.net>
Sat, 14 Aug 2021 13:59:53 +0000 (22:59 +0900)
build.sh

index 329bd4d..ad4b4cf 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -181,11 +181,12 @@ mount_airootfs () {
 # Helper function to run make_*() only one time.
 run_once() {
     if [[ ! -e "${lockfile_dir}/build.${1}" ]]; then
+        umount_work
         msg_debug "Running ${1} ..."
         mount_airootfs
         eval "${@}"
         mkdir -p "${lockfile_dir}"; touch "${lockfile_dir}/build.${1}"
-        umount_work
+        
     else
         msg_debug "Skipped because ${1} has already been executed."
     fi