xbps-src: always try to unmount via xbps-src-chroot-helper before exiting.
This commit is contained in:
parent
0d4d02dd91
commit
a599311f15
3 changed files with 16 additions and 10 deletions
|
@ -98,8 +98,9 @@ umount_chroot_fs()
|
|||
done
|
||||
|
||||
# Remove created dirs
|
||||
[ -f ${XBPS_MASTERDIR}/.xbps_mount_bind_done ] && continue
|
||||
[ -d ${XBPS_MASTERDIR}/xbps ] && rmdir ${XBPS_MASTERDIR}/xbps
|
||||
if [ ! -f ${XBPS_MASTERDIR}/.xbps_mount_bind_done ]; then
|
||||
[ -d ${XBPS_MASTERDIR}/xbps ] && rmdir ${XBPS_MASTERDIR}/xbps
|
||||
fi
|
||||
}
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue