xbps-src: always try to unmount via xbps-src-chroot-helper before exiting.

This commit is contained in:
Juan RP 2010-05-14 14:48:55 +02:00
parent 0d4d02dd91
commit a599311f15
3 changed files with 16 additions and 10 deletions

View file

@ -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