Index: common.sh |
diff --git a/common.sh b/common.sh |
index a11f2572899ed6885699745aa73f8d32e90e79bb..32cf4b39f74d8b261df668838208056b5786f420 100644 |
--- a/common.sh |
+++ b/common.sh |
@@ -234,12 +234,9 @@ function restart_in_chroot_if_needed { |
# NB: Pass in ARGV: restart_in_chroot_if_needed "$@" |
if [ $INSIDE_CHROOT -ne 1 ] |
then |
- local abspath=$(readlink -f "$0") |
- # strip everything up to (and including) /src/scripts/ from abspath |
- local path_from_scripts="${abspath##*/src/scripts/}" |
+ # Equivalent to enter_chroot.sh -- <current command> |
exec $SCRIPTS_DIR/enter_chroot.sh -- \ |
- "$CHROOT_TRUNK_DIR/src/scripts/$path_from_scripts" "$@" |
- exit |
+ $CHROOT_TRUNK_DIR/src/scripts/$(basename $0) $* |
diandersAtChromium
2010/12/16 22:54:10
Should still be "$@", right?
Greg Spencer (Chromium)
2010/12/17 00:19:24
I agree, it should be.
|
fi |
} |