OSDN Git Service
(root)
/
alterlinux
/
alterlinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ef341b
)
[update] : Added automatic unmount for rebuild.
author
hayao
<shun819.mail@gmail.com>
Sat, 18 Apr 2020 02:44:43 +0000
(11:44 +0900)
committer
hayao
<shun819.mail@gmail.com>
Sat, 18 Apr 2020 02:44:43 +0000
(11:44 +0900)
build.sh
patch
|
blob
|
history
diff --git
a/build.sh
b/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