BGBM BDI Projects
/
taxeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix possible NPE
[taxeditor.git]
/
eu.etaxonomy.taxeditor
/
deploy_nightly.sh
diff --git
a/eu.etaxonomy.taxeditor/deploy_nightly.sh
b/eu.etaxonomy.taxeditor/deploy_nightly.sh
index 2cb8ea7c97f541d2cb3f375cd0a3041d0fa90666..0b1fa5b54707a8326f672cb8d742a2ad5a0ca0c3 100755
(executable)
--- a/
eu.etaxonomy.taxeditor/deploy_nightly.sh
+++ b/
eu.etaxonomy.taxeditor/deploy_nightly.sh
@@
-1,23
+1,23
@@
#!/bin/bash
#!/bin/bash
-# testing
+#
local
testing
#WORKSPACE="/Users/n.hoffmann/Documents/workspace/taxeditor/trunk"
PRODUCT_DIR="$WORKSPACE/eu.etaxonomy.taxeditor/target/products"
#WORKSPACE="/Users/n.hoffmann/Documents/workspace/taxeditor/trunk"
PRODUCT_DIR="$WORKSPACE/eu.etaxonomy.taxeditor/target/products"
-DEPLOYMENT_SERVER="
wp5.e-
taxonomy.eu"
+DEPLOYMENT_SERVER="
cyber
taxonomy.eu"
DEPLOYMENT_DIR="/var/www/download/taxeditor/nightly"
# bash check if directory exists
if [ ! -d $PRODUCT_DIR ]; then
DEPLOYMENT_DIR="/var/www/download/taxeditor/nightly"
# bash check if directory exists
if [ ! -d $PRODUCT_DIR ]; then
- echo "
Targe
t directory does not exist: $PRODUCT_DIR"
+ echo "
Produc
t directory does not exist: $PRODUCT_DIR"
exit 1
fi
exit 1
fi
-PRODUCTS=$(ls
$PRODUCT_DIR/eu.etaxonomy.taxeditor.product-*.zip)
+PRODUCTS=$(ls $PRODUCT_DIR/eu.etaxonomy.taxeditor.product-*.zip)
-if [ !
-e
$PRODUCTS ]; then
- echo "No products in
target folder.
"
+if [ ! $PRODUCTS ]; then
+ echo "No products in
product directory: $PRODUCT_DIR
"
exit 1
fi
exit 1
fi