Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2016-05-10 20:06:18 +0000
committerDavid Williams2016-05-10 20:06:18 +0000
commit1f45c53123d4d7c06fdaf675b3d88bd66530ae9c (patch)
tree80e0c73380d9ac5991fbe23ed46b9081c3528a94 /production/bootstrapVariables.shsource
parentea87a213e88d97b56965446953fef38eb14f1de0 (diff)
downloadeclipse.platform.releng.aggregator-1f45c53123d4d7c06fdaf675b3d88bd66530ae9c.tar.gz
eclipse.platform.releng.aggregator-1f45c53123d4d7c06fdaf675b3d88bd66530ae9c.tar.xz
eclipse.platform.releng.aggregator-1f45c53123d4d7c06fdaf675b3d88bd66530ae9c.zip
[releng] add error checking for bullet proofing
Diffstat (limited to 'production/bootstrapVariables.shsource')
-rw-r--r--production/bootstrapVariables.shsource8
1 files changed, 7 insertions, 1 deletions
diff --git a/production/bootstrapVariables.shsource b/production/bootstrapVariables.shsource
index 25709ac1a..75ef081e9 100644
--- a/production/bootstrapVariables.shsource
+++ b/production/bootstrapVariables.shsource
@@ -7,7 +7,13 @@ then
RAWDATE=$( date +%s )
export RAWDATE
fi
-
+if [[ -z "${SCRIPT_PATH}" ]]
+then
+ echo -e "\n\t[ERROR] SCRIPT_PATH is not defined as expected in ${0##*/}"
+ exit 1
+else
+ echo -e "\n\t[INFO] SCRIPT_PATH defined as ${SCRIPT_PATH}"
+fi
source "${SCRIPT_PATH}/bashUtilities.shsource"
# USAGE: fn-git-cache BUILD_ROOT

Back to the top