Skip to content

Commit d3432bd

Browse files
committed
[fix] : Fixed umount function
1 parent 7b1d53d commit d3432bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/clean.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ remove() {
8585
for _file in "${@}"; do msg_debug "Removing ${_file}"; rm -rf "${_file}"; done
8686
}
8787

88+
# Unmount helper Usage: _umount <target>
89+
_umount() { if mountpoint -q "${1}"; then umount -lf "${1}"; fi; }
90+
8891
# Unmount chroot dir
8992
umount_chroot () {
9093
local _mount

0 commit comments

Comments
 (0)