OSDN Git Service

[update] : Added automatic unmount for rebuild.
authorhayao <shun819.mail@gmail.com>
Sat, 18 Apr 2020 02:44:43 +0000 (11:44 +0900)
committerhayao <shun819.mail@gmail.com>
Sat, 18 Apr 2020 02:44:43 +0000 (11:44 +0900)
build.sh

index 21aa8f8..8fe854b 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -303,6 +303,13 @@ prepare_build() {
 
         # Delete the lock file.
         # remove "$(ls ${work_dir}/* | grep "build.make")"
+
+        # Unmount
+        local mount
+        for mount in $(sudo mount | grep $(realpath ${work_dir}) | awk '{print $3}'); do
+            _msg_info "Unmounting ${mount}"
+            umount "${mount}"
+        done
     fi