diff --git a/README.md b/README.md index 6863366..e6184f0 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,16 @@ Scripts to download and run the latest Linux build of Chromium. Note that it is the latest development version, not the last stable one. This build is recommended for testing only. + +## Usage + +Download and runs the latest build of Chromium + + $ ./update-and-run.sh + +Download a specific revision + + $ export REVISION=492595 + $ ./update-and-run.sh + +The same use is possible with ./update.sh diff --git a/update.sh b/update.sh index 2520100..dc4e97c 100755 --- a/update.sh +++ b/update.sh @@ -4,9 +4,13 @@ cd $(dirname $0) LASTCHANGE_URL="https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2FLAST_CHANGE?alt=media" -REVISION=$(curl -s -S $LASTCHANGE_URL) +if [ -z "$REVISION" ]; then + REVISION=$(curl -s -S $LASTCHANGE_URL) -echo "latest revision is $REVISION" + echo "latest revision is $REVISION" +else + echo "Using given revision $REVISION as latest revision" +fi if [ -d $REVISION ] ; then echo "already have latest version"