From ca7e8a6650d324835c91414a4cd04073283e1a4c Mon Sep 17 00:00:00 2001 From: AlexanderSaydakov Date: Tue, 18 Jun 2019 12:46:35 -0700 Subject: [PATCH] check if version is specified, cleanup --- package.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package.sh b/package.sh index eedfd8e..b9602a4 100755 --- a/package.sh +++ b/package.sh @@ -2,6 +2,11 @@ VER=$1 +if [ -z $1 ]; then + echo version must be specified: x.y.z + exit; +fi + DST=datasketches-$VER PGARCH=postgresql-$VER.zip @@ -21,3 +26,6 @@ mkdir $COREDIR unzip $COREARCH -d $COREDIR zip -r $DST.zip $DST + +rm $PGARCH $COREARCH +rm -r $DST