diff options
author | Sebastian | 2010-04-09 23:56:28 +0200 |
---|---|---|
committer | Sebastian | 2010-04-09 23:56:28 +0200 |
commit | bbf39bd59f31084d499c2cdd064274093b39dad8 (patch) | |
tree | 6715dffc0fc60fec9df5efdbe6a127faf454881b /inc/chroot-functions.inc.sh | |
parent | added caching (diff) | |
download | broot-bbf39bd59f31084d499c2cdd064274093b39dad8.tar.gz broot-bbf39bd59f31084d499c2cdd064274093b39dad8.tar.xz broot-bbf39bd59f31084d499c2cdd064274093b39dad8.zip |
added dependency based system to run defined tasks
Diffstat (limited to 'inc/chroot-functions.inc.sh')
-rw-r--r-- | inc/chroot-functions.inc.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/chroot-functions.inc.sh b/inc/chroot-functions.inc.sh index b07f3ea..5693a54 100644 --- a/inc/chroot-functions.inc.sh +++ b/inc/chroot-functions.inc.sh @@ -1,13 +1,13 @@ chroot-exec () { - if [ $(mount |grep -c $buildrootpath/dev) -eq 0 ]; then + if [ $(mount |grep -c $BROOT_BUILDROOT_PATH/dev) -eq 0 ]; then setupBindmounts fi - chroot $buildrootpath linux32 $@ + chroot $BROOT_BUILDROOT_PATH linux32 $@ } chroot-aptinstall () { - if [ $(mount |grep -c $buildrootpath/dev) -eq 0 ]; then + if [ $(mount |grep -c $BROOT_BUILDROOT_PATH/dev) -eq 0 ]; then setupBindmounts fi - chroot $buildrootpath linux32 aptitude install -y $@ + chroot $BROOT_BUILDROOT_PATH linux32 aptitude install -y $@ } |