]> git.pld-linux.org Git - packages/google-chrome.git/commitdiff
Yell about unknown branches.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 3 Jul 2012 10:29:53 +0000 (10:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    update-source.sh -> 1.7

update-source.sh

index a092dc3bf0186d370ec2b2a6853c831378df350c..0d96d684b97a1ae8e198d44c1f03f52c0b2ab565 100644 (file)
@@ -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
This page took 0.034188 seconds and 4 git commands to generate.