File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,13 +86,13 @@ remove() {
8686# Unmount chroot dir
8787umount_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
You can’t perform that action at this time.
0 commit comments