diff options
author | Arsen Arsenović <arsen@aarsen.me> | 2023-01-07 19:59:39 +0100 |
---|---|---|
committer | Arsen Arsenović <arsen@aarsen.me> | 2023-01-09 14:01:17 +0100 |
commit | a8056ebf975a0ae4184a2c8e2b90718e273e8675 (patch) | |
tree | 34c17ea94479b090b70a23f69f2b906fac00d6b3 | |
parent | Check in wx-config, wxrc and wxwin.m4 (diff) | |
download | eselect-wxwidgets-a8056ebf975a0ae4184a2c8e2b90718e273e8675.tar.gz eselect-wxwidgets-a8056ebf975a0ae4184a2c8e2b90718e273e8675.tar.bz2 eselect-wxwidgets-a8056ebf975a0ae4184a2c8e2b90718e273e8675.zip |
{wxrc,wx-config}-1.4: Propagate error codes properly
-rw-r--r-- | wx-config-1.4 | 6 | ||||
-rw-r--r-- | wxrc-1.4 | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/wx-config-1.4 b/wx-config-1.4 index 7dcb063..70b6b2c 100644 --- a/wx-config-1.4 +++ b/wx-config-1.4 @@ -19,8 +19,7 @@ _wxerror() { } if [ -n "${WX_ECLASS_CONFIG}" ]; then - ${WX_ECLASS_CONFIG} "$@" - exit 0 + exec "${WX_ECLASS_CONFIG}" "$@" else if [ -e "${EPREFIX}"/var/lib/wxwidgets/current ]; then . "${EPREFIX}"/var/lib/wxwidgets/current @@ -31,10 +30,9 @@ else [ -z "${WXCONFIG}" -o "${WXCONFIG}" = none ] && _wxerror "No profile currently selected" if [ -x "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" ]; then - "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" "$@" + exec "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" "$@" else _wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )" fi - exit 0 fi @@ -19,8 +19,7 @@ _wxerror() { } if [ -n "${WX_ECLASS_CONFIG}" ]; then - $(${WX_ECLASS_CONFIG} --utility=wxrc) "$@" - exit 0 + exec "$("${WX_ECLASS_CONFIG}" --utility=wxrc)" "$@" else if [ -e "${EPREFIX}"/var/lib/wxwidgets/current ]; then . "${EPREFIX}"/var/lib/wxwidgets/current @@ -31,10 +30,9 @@ else [ -z "${WXCONFIG}" -o "${WXCONFIG}" = none ] && _wxerror "No profile currently selected" if [ -x "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" ]; then - $("${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" --utility=wxrc) "$@" + exec "$("${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" --utility=wxrc)" "$@" else _wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )" fi - exit 0 fi |