We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f806ca commit a9afc01Copy full SHA for a9afc01
build.sh
@@ -197,6 +197,9 @@ _mount() { if ! mountpoint -q "${2}" && [[ -f "${1}" ]] && [[ -d "${2}" ]]; then
197
# Unmount chroot dir
198
umount_chroot () {
199
local _mount
200
+ if [[ ! -v build_dir ]] || [[ "${build_dir}" = "" ]]; then
201
+ msg_error "Exception error about working directory" 1
202
+ fi
203
for _mount in $(cat /proc/mounts | getclm 2 | grep "$(realpath ${build_dir})" | tac | grep -xv "$(realpath ${build_dir})/${arch}/airootfs"); do
204
msg_info "Unmounting ${_mount}"
205
_umount "${_mount}" 2> /dev/null
0 commit comments