git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2d2b5b
)
Додано перевірку на упішність клонування репозиторію
author
Maxim Mamontov
<faust.madf@gmail.com>
Sat, 18 Dec 2010 15:06:57 +0000
(17:06 +0200)
committer
Maxim Mamontov
<faust.madf@gmail.com>
Sat, 18 Dec 2010 15:06:57 +0000
(17:06 +0200)
projects/make_tarball/make.sh
patch
|
blob
|
history
diff --git
a/projects/make_tarball/make.sh
b/projects/make_tarball/make.sh
index e072c5731d1d71d99c040a509ae023e936351167..33a24dbf334bb6ed6116a0dbf408d83d69c98ab1 100755
(executable)
--- 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