#!/bin/bash
-# testing
+# local testing
#WORKSPACE="/Users/n.hoffmann/Documents/workspace/taxeditor/trunk"
PRODUCT_DIR="$WORKSPACE/eu.etaxonomy.taxeditor/target/products"
# 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