Skip to content

Commit

Permalink
Print error log to stderr output (#4436)
Browse files Browse the repository at this point in the history
Signed-off-by: Chong Gao <res_life@163.com>
  • Loading branch information
Chong Gao authored Jan 5, 2022
1 parent 8bb8dbe commit 53e0cd0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dist/scripts/check-shims-revisions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,14 @@ function check-shims-revisions() {
if [[ -f "$shim_version_path" ]] ; then
curr_revision=$(grep "revision=" "${shim_version_path}" | cut -d'=' -f2)
if [ -n "$pre_revision" ] && [[ "$curr_revision" != "$pre_revision" ]] ; then
echo
echo "Check Failed: git revisions between shims are not equal"
echo "Please check the revisions of each shim to see which one is inconsistent. Note, if building with Databricks those jars are built separately."
echo >&2 "Check Failed: git revisions between shims are not equal"
echo >&2 "Please check the revisions of each shim to see which one is inconsistent. Note, if building with Databricks those jars are built separately."
exit 1
fi
pre_revision="${curr_revision}"
pre_shim_version_path="${shim_version_path}"
else
echo "Error: version file missing: ${shim_version_path}"
echo >&2 "Error: version file missing: ${shim_version_path}"
exit 1
fi
done
Expand Down

0 comments on commit 53e0cd0

Please sign in to comment.