]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: warn on no args to build script
authorSage Weil <sage@newdream.net>
Wed, 28 Oct 2009 19:13:48 +0000 (12:13 -0700)
committerSage Weil <sage@newdream.net>
Wed, 28 Oct 2009 19:13:48 +0000 (12:13 -0700)
build_upload_debian_packages.sh

index e54dbde92ea58fa4181508e19e09c1d5068a77ab..013a82d8f21d5ce8474e11196d805c7c74e42764 100755 (executable)
@@ -9,6 +9,9 @@ repo=$1
 arch=$2
 snapshot=$3
 
+[ -z "$repo" ] && echo no repo && exit 1
+[ -z "$arch" ] && echo no arch && exit 1
+
 if [ "$repo" = "unstable" ]; then
     versuffix=`date "+%Y%m%d%H%M%S"`
 #    if [ `echo $vers | sed 's/[^\.]//g'` = ".." ]; then