Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2014-11-10 00:36:37 +0000
committerDavid Williams2014-11-10 00:36:37 +0000
commit81d7b216dfad707841eb0dec2f0ec1a69bf531b7 (patch)
treee63b5fa29343a09b65ad27c5b62d6454d4e95355 /production/bashUtilities.shsource
parent958e419a1b8b3d4ce3cb6d42fe4216eade99d654 (diff)
downloadeclipse.platform.releng.aggregator-81d7b216dfad707841eb0dec2f0ec1a69bf531b7.tar.gz
eclipse.platform.releng.aggregator-81d7b216dfad707841eb0dec2f0ec1a69bf531b7.tar.xz
eclipse.platform.releng.aggregator-81d7b216dfad707841eb0dec2f0ec1a69bf531b7.zip
Bug 444243 - Improve scripts to handle performance tests
Diffstat (limited to 'production/bashUtilities.shsource')
-rw-r--r--production/bashUtilities.shsource16
1 files changed, 8 insertions, 8 deletions
diff --git a/production/bashUtilities.shsource b/production/bashUtilities.shsource
index 6247fc3bf..ad30df2a9 100644
--- a/production/bashUtilities.shsource
+++ b/production/bashUtilities.shsource
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-# General purpose utilities that are only related to bash (not
+# General purpose utilities that are only related to bash (not
# the build, per se.
# A general purpose utility to check number of arguments match
@@ -108,11 +108,11 @@ checkForErrorExit ()
fi
}
-# A general purpose utility to check if variable is
-# undefinded or empty string and exit if so,
+# A general purpose utility to check if variable is
+# undefinded or empty string and exit if so,
# printing a useful diagnosic trace if variable was empty.
-# NOTE: only the variable NAME should be passed as argument,
-# note its value. Such as
+# NOTE: only the variable NAME should be passed as argument,
+# note its value. Such as
# assertNotEmpty BUILD_ID
# not
# assertNotEmpty $BUILD_ID
@@ -123,13 +123,13 @@ assertNotEmpty ()
#echo "DEBUG: VAR_NAME: $VAR_NAME" >&2
#echo "DEBUG: \$VAR_NAME: ${!VAR_NAME}" >&2
if [[ -z "${!VAR_NAME}" ]]
- then
- printf "\n\tPROGRAM ERROR: %s\n" "${VAR_NAME} was unexpectedly empty or undefined."
+ then
+ printf "\n\tPROGRAM ERROR: %s\n" "${VAR_NAME} was unexpectedly empty or undefined."
printf "\t%s\n\n" "in ${FUNCNAME[1]}, called from line number ${BASH_LINENO[0]} in ${BASH_SOURCE[1]}."
exit 1
else
printf "\n\t%s:\t%s\n" "${VAR_NAME}" "${!VAR_NAME}"
- fi
+ fi
}

Back to the top