Allow specifying an alternate config file URL on the commandline.

Change-Id: I1b73674c769027cb557b37d3533534f261521106

BUG=chromium-os:781
TEST=manual

Try running recovery.sh with no args. It should try to download the config
file from a default location (which may not actually exist). Then try
running recovery.sh with a URL as a command-line argument. It should fetch
the config file from that location instead.

Review URL: http://codereview.chromium.org/5529006
This commit is contained in:
Bill Richardson
2010-12-06 12:51:18 -08:00
parent 82d206fb89
commit d5b3d9dacc

View File

@@ -19,8 +19,9 @@ set -eu
# run again without needing to download a second time. # run again without needing to download a second time.
WORKDIR=/tmp/tmp.crosrec WORKDIR=/tmp/tmp.crosrec
# Where do we look for the config file? # Where do we look for the config file? Note that we can override this by just
CONFIGURL='http://www.chromium.org/some/random/place.cfg' # specifying the config file URL on the command line.
CONFIGURL="${1:-http://www.chromium.org/some/random/place.cfg}"
# What version is this script? It must match the 'recovery_tool_version=' value # What version is this script? It must match the 'recovery_tool_version=' value
# in the config file that we'll download. # in the config file that we'll download.