cicd: a series of small improvements

This commit is contained in:
Andrew Hlynskyi 2023-05-03 05:23:10 +03:00
parent 8caef571ef
commit ebd80906fb
5 changed files with 41 additions and 19 deletions

View file

@ -1,9 +1,16 @@
#!/bin/bash
set -x
# set -x
set -e
if [ "$CROSS" != 1 ]; then
if [ "$BUILD_CMD" != "cross" ]; then
echo "cross.sh - is a helper to assist only in cross compiling environments" >&2
echo "To use this tool set the BUILD_CMD env var to the \"cross\" value" >&2
exit 111
fi
if [ -z "$CROSS_IMAGE" ]; then
echo "The CROSS_IMAGE env var should be provided" >&2
exit 111
fi