Force mod_image_for_test to run inside chroot if outside

Review URL: http://codereview.chromium.org/1818001
This commit is contained in:
Chris Sosa 2010-04-29 16:19:05 -07:00
parent 0e8b0a71c2
commit c5e880f7db

View File

@ -13,6 +13,11 @@
# Load functions and constants for chromeos-install
. "$(dirname "$0")/chromeos-common.sh"
if [ ${INSIDE_CHROOT} -eq 0 ] ; then
"$(dirname "$0")/enter_chroot.sh" ./mod_image_for_test.sh "$@"
exit 0
fi
get_default_board
DEFINE_string board "$DEFAULT_BOARD" "Board for which the image was built"