mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-18 13:30:43 +00:00
functions.sh: send error message to stderr
This commit is contained in:
parent
8219a3219f
commit
4d3c8c8533
@ -127,14 +127,14 @@ readconfig() {
|
||||
USE_COLORS=${_USE_COLORS-$USE_COLORS}
|
||||
USE_CCACHE=${_USE_CCACHE-$USE_CCACHE}
|
||||
|
||||
[ -z "$CBUILD" ] && CBUILD="$(${APK:-apk} --print-arch 2>/dev/null)"
|
||||
[ -z "$CBUILD" ] && CBUILD="$(${APK:-apk} --print-arch 2>/dev/null || :)"
|
||||
[ -z "$CHOST" ] && CHOST="$CBUILD"
|
||||
[ -z "$CTARGET" ] && CTARGET="$CHOST"
|
||||
[ "$(arch_to_hostspec $CBUILD)" != "unknown" ] && CBUILD="$(arch_to_hostspec $CBUILD)"
|
||||
[ "$(arch_to_hostspec $CHOST)" != "unknown" ] && CHOST="$(arch_to_hostspec $CHOST)"
|
||||
[ "$(arch_to_hostspec $CTARGET)" != "unknown" ] && CTARGET="$(arch_to_hostspec $CTARGET)"
|
||||
if [ -z "$CBUILD" ]; then
|
||||
echo "Unable to deduce build architecture. Install apk-tools, or set CBUILD."
|
||||
echo "Unable to deduce build architecture. Install apk-tools, or set CBUILD." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user