Updated version in pom / project files to taxeditor version : 3.8.0-SNAPSHOT and...
[taxeditor.git] / eu.etaxonomy.taxeditor / deploy_nightly.sh
index 8bc30efff713533cbd4da6aa030509978d98313d..8da863d4c96ad70b41191032dfed7d263d85e597 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-# testing
-WORKSPACE="/Users/n.hoffmann/Documents/workspace/taxeditor/trunk"
+# local testing
+#WORKSPACE="/Users/n.hoffmann/Documents/workspace/taxeditor/trunk"
 
 PRODUCT_DIR="$WORKSPACE/eu.etaxonomy.taxeditor/target/products"
 
@@ -10,14 +10,14 @@ DEPLOYMENT_DIR="/var/www/download/taxeditor/nightly"
 
 # bash check if directory exists
 if [ ! -d $PRODUCT_DIR ]; then
-       echo "Target directory does not exist: $PRODUCT_DIR" 
+       echo "Product directory does not exist: $PRODUCT_DIR" 
        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