chroot.sh: don't mount unexistent dirs.

--HG--
extra : convert_revision : 51610bead1446f198b5a47596aeef3b82ae2c400
This commit is contained in:
Juan RP 2008-12-22 03:16:16 +01:00
parent 0bb6db28c2
commit e4f9ab62d8

View file

@ -197,6 +197,7 @@ mount_chroot_fs()
;;
*) blah=/$f;;
esac
[ ! -d $blah ] && continue
mount --bind $blah $XBPS_MASTERDIR/$f
if [ $? -eq 0 ]; then
echo 1 > $XBPS_MASTERDIR/.${f}_mount_bind_done