summaryrefslogtreecommitdiff
path: root/mk/bulk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/bulk')
-rw-r--r--mk/bulk/do-sandbox-build9
1 files changed, 6 insertions, 3 deletions
diff --git a/mk/bulk/do-sandbox-build b/mk/bulk/do-sandbox-build
index 8d015d85e68..49f193777c4 100644
--- a/mk/bulk/do-sandbox-build
+++ b/mk/bulk/do-sandbox-build
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: do-sandbox-build,v 1.10 2005/05/07 22:16:38 wiz Exp $
+# $NetBSD: do-sandbox-build,v 1.11 2005/06/27 16:04:08 rillig Exp $
#
# Script to start a sandbox build
@@ -7,5 +7,8 @@
# See pkgsrc/doc/pkgsrc.txt for documentation!
#
-sh=`which sh`
-chroot /usr/sandbox $sh -c "cd /usr/pkgsrc && $sh mk/bulk/build $@"
+sh="/bin/sh"
+build="mk/bulk/build"
+
+chroot /usr/sandbox \
+ $sh -c "cd /usr/pkgsrc && exec $sh $build \"\$@\"" -- $build "$@"