From: Arkadiusz Miƛkiewicz Date: Tue, 3 Jul 2012 10:29:53 +0000 (+0000) Subject: Yell about unknown branches. X-Git-Tag: google-chrome-20.0.1132.47-144678~2 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=81efd66cbb35c2b828c30ffe259a128be7383219;p=packages%2Fgoogle-chrome.git Yell about unknown branches. Changed files: update-source.sh -> 1.7 --- diff --git a/update-source.sh b/update-source.sh index a092dc3..0d96d68 100644 --- a/update-source.sh +++ b/update-source.sh @@ -3,6 +3,16 @@ arch=x86_64 # branch: stable, beta, unstable. default: stable branch=${1:-stable} + +case "${branch}" in + stable|beta|unstable) + ;; + *) + echo "$0: Unknown branch: $branch. Supported branches: stable, beta, unstable." >&2 + exit 1 + ;; +esac + sourceurl=http://dl.google.com/linux/chrome/rpm/stable/$arch/ set -e