added about to not fail on error (needed for "first time" creation)
diff --git a/org.eclipse.juno.tools/printStats.sh b/org.eclipse.juno.tools/printStats.sh
index 1a4dff2..cf0ccd4 100644
--- a/org.eclipse.juno.tools/printStats.sh
+++ b/org.eclipse.juno.tools/printStats.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-
+FAIL_ON_ERROR=false
source aggr_properties.shsource
if [ -z "${toDirectory}" ]
@@ -12,29 +12,41 @@
if [ ! -e "${toDirectory}" ]
then
- echo "repository directory does not exist. Exiting."
- exit 1;
+ echo "repository directory does not exist. "
+ if [[ "$FAIL_ON_ERROR" == "true" ]]
+ then
+ echo " Exiting."
+ exit 1;
+ fi
fi
-
+
featuresDirectory="${toDirectory}"${AGGR}/features
pluginsDirectory="${toDirectory}"${AGGR}/plugins
if [ ! -e "${featuresDirectory}" ]
then
- echo "repository features directory structure not as expected. Exiting."
- exit 1;
+ echo "repository features directory structure not as expected."
+ if [[ "$FAIL_ON_ERROR" == "true" ]]
+ then
+ echo " Exiting."
+ exit 1;
+ fi
fi
if [ ! -e "${pluginsDirectory}" ]
then
- echo "repository plugins directory structure not as expected. Exiting."
- exit 1;
+ echo "repository plugins directory structure not as expected."
+ if [[ "$FAIL_ON_ERROR" == "true" ]]
+ then
+ echo " Exiting."
+ exit 1;
+ fi
fi
-
+
echo "Features: ";
find "${featuresDirectory}" | wc -l
du -sh "${featuresDirectory}"
-
+
echo "Plugin jar files: ";
find "${pluginsDirectory}" -name "*.jar" | wc -l
du -sh --exclude=*.pack.gz "${pluginsDirectory}"
@@ -43,5 +55,5 @@
find "${pluginsDirectory}" -name "*jar.pack.gz" | wc -l
du -sh --exclude=*.jar "${pluginsDirectory}"
+exit 0
-
\ No newline at end of file