From 81efd66cbb35c2b828c30ffe259a128be7383219 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Tue, 3 Jul 2012 10:29:53 +0000 Subject: [PATCH] Yell about unknown branches. Changed files: update-source.sh -> 1.7 --- update-source.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.44.0