Display product-tests compose error to stderr
When export_canonical_path or whole compose-commons.sh script was called
within VAR=$(...) then error message was captured as VAR value
and script exited due `exit 1` with error message swallowed.
Displaying the error message to stderr avoid the above.
@@ -15,7 +15,7 @@ function export_canonical_path() {
elif [[ -f $PATH ]]; then
PATH=$(echo "$(cd ${PATH%/*} && pwd)/${PATH##*/}")
else
- echo "Invalid path: [$PATH]. Working directory is [$(pwd)]."
+ echo "Invalid path: [$PATH]. Working directory is [$(pwd)]." >&2
exit 1
fi
export $PATH_REFERENCE=$PATH
