Index: build/utils/download-api-client ================================================================== --- build/utils/download-api-client +++ build/utils/download-api-client @@ -6,11 +6,11 @@ # Help function print_help() { echo 'download-api-client [--platform ] [--tcl-version ]' echo ' [--kitcreator-version ] [--kitdll]' echo ' [--threaded] [--debug] [--dynamictk]' - echo ' [--staticpkgs]' + echo ' [--staticpkgs] [--verbose]' echo 'download-api-client {--help|--platforms|--tcl-versions|' echo ' --kitcreator-versions|--packages}' } # Set arguments @@ -18,18 +18,22 @@ jsonArgs["platform"]="$(uname -s)-$(uname -m)" nextArg='' kit_filename='' options=() +internalOptionsVerbose='false' for arg in "$@"; do if [ -n "${nextArg}" ]; then jsonArgs["${nextArg}"]="${arg}" nextArg='' continue fi case "${arg}" in + --verbose) + internalOptionsVerbose='true' + ;; --platform|--tcl-version|--kitcreator-version) nextArg="${arg:2}" nextArg="${nextArg//-/_}" ;; --kitdll|--threaded|--debug|--dynamictk|--staticpkgs) @@ -111,12 +115,14 @@ if [ -n "${buildStatusWroteHeader}" ]; then echo " ${status}" fi if [ "${status}" != "complete" ]; then - echo "failed: ${status}" >&2 - curl -sSL "${build_log_url}" >&2 + echo "${status}: Build terminated in error" >&2 + if [ "${internalOptionsVerbose}" = 'true' ]; then + curl -sSL "${build_log_url}" >&2 + fi exit 1 fi kit_url="$(jq -crM .kit_url <<<"${info}")"