Skip to content

Commit 5d624c5

Browse files
committed
[fix] : Fixed typo
1 parent a7acd5f commit 5d624c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/clean.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ remove() {
8686
# Unmount chroot dir
8787
umount_chroot () {
8888
local _mount
89-
if [[ ! -v "build_dir" ]] || [[ "${build_dir}" = "" ]]; then
89+
if [[ ! -v "work_dir" ]] || [[ "${work_dir}" = "" ]]; then
9090
msg_error "Exception error about working directory" 1
9191
fi
92-
if [[ ! -d "${build_dir}" ]]; then
92+
if [[ ! -d "${work_dir}" ]]; then
9393
return 0
9494
fi
95-
for _mount in $(cat "/proc/mounts" | getclm 2 | grep "$(realpath -s ${build_dir})" | tac | grep -xv "$(realpath -s ${build_dir})/${arch}/airootfs"); do
95+
for _mount in $(cat "/proc/mounts" | getclm 2 | grep "$(realpath -s ${work_dir})" | tac | grep -xv "$(realpath -s ${work_dir})/${arch}/airootfs"); do
9696
if echo "${_mount}" | grep "${work_dir}" > /dev/null 2>&1 || echo "${_mount}" | grep "${script_path}" > /dev/null 2>&1 || echo "${_mount}" | grep "${out_dir}" > /dev/null 2>&1; then
9797
msg_info "Unmounting ${_mount}"
9898
_umount "${_mount}" 2> /dev/null

0 commit comments

Comments
 (0)