OSDN Git Service

[change] : var name (mount -> _mount)
authorhayao <shun819.mail@gmail.com>
Thu, 20 Aug 2020 01:34:42 +0000 (10:34 +0900)
committerhayao <shun819.mail@gmail.com>
Thu, 20 Aug 2020 01:34:42 +0000 (10:34 +0900)
build.sh

index 2a3acae..0db625f 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -304,10 +304,10 @@ _usage () {
 
 # Unmount chroot dir
 umount_chroot () {
-    local mount
-    for mount in $(mount | awk '{print $3}' | grep $(realpath ${work_dir}) | tac); do
-        _msg_info "Unmounting ${mount}"
-        umount -lf "${mount}"
+    local _mount
+    for _mount in $(mount | awk '{print $3}' | grep $(realpath ${work_dir}) | tac); do
+        _msg_info "Unmounting ${_mount}"
+        umount -lf "${_mount}"
     done
 }