From eb3d52cbef2cecf8cce5fce1ef7adccfdf2b3fab Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 18 Dec 2010 17:06:57 +0200 Subject: [PATCH] =?utf8?q?=D0=94=D0=BE=D0=B4=D0=B0=D0=BD=D0=BE=20=D0=BF?= =?utf8?q?=D0=B5=D1=80=D0=B5=D0=B2=D1=96=D1=80=D0=BA=D1=83=20=D0=BD=D0=B0?= =?utf8?q?=20=D1=83=D0=BF=D1=96=D1=88=D0=BD=D1=96=D1=81=D1=82=D1=8C=20?= =?utf8?q?=D0=BA=D0=BB=D0=BE=D0=BD=D1=83=D0=B2=D0=B0=D0=BD=D0=BD=D1=8F=20?= =?utf8?q?=D1=80=D0=B5=D0=BF=D0=BE=D0=B7=D0=B8=D1=82=D0=BE=D1=80=D1=96?= =?utf8?q?=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projects/make_tarball/make.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/projects/make_tarball/make.sh b/projects/make_tarball/make.sh index e072c573..33a24dbf 100755 --- a/projects/make_tarball/make.sh +++ b/projects/make_tarball/make.sh @@ -5,11 +5,17 @@ ARC_NAME=$SRC_DIR.tar.gz git clone git://madf.dyndns.org/stg.git $SRC_DIR -rm -r $SRC_DIR/.git +if [ $? != 0 ] +then + echo "Failed to clone repository" + exit -1 +fi + +rm -rf $SRC_DIR/.git rm -r $SRC_DIR/projects/make_tarball rm -r $SRC_DIR/projects/traffcounter rm -r $SRC_DIR/projects/stargazer/plugins/other/userstat rm -r $SRC_DIR/projects/stargazer/plugins/authorization/stress rm -r $SRC_DIR/projects/stargazer/plugins/store/db -tar -zcf $arc_name $src_dir +tar -zcf $ARC_NAME $SRC_DIR -- 2.44.2