summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@aarsen.me>2023-01-09 14:01:38 +0100
committerArsen Arsenović <arsen@aarsen.me>2023-01-09 14:01:38 +0100
commitd54050db263a4c0d16670243d3b70fb038576c6f (patch)
treec2e6402cafb674b0eb131220c4e402bcc5e37c77
parent{wxrc,wx-config}-1.4: Propagate error codes properly (diff)
downloadeselect-wxwidgets-d54050db263a4c0d16670243d3b70fb038576c6f.tar.gz
eselect-wxwidgets-d54050db263a4c0d16670243d3b70fb038576c6f.tar.bz2
eselect-wxwidgets-d54050db263a4c0d16670243d3b70fb038576c6f.zip
wx{-config,rc}-1.4: Address shellcheck warnings
-rw-r--r--wx-config-1.45
-rw-r--r--wxrc-1.45
2 files changed, 6 insertions, 4 deletions
diff --git a/wx-config-1.4 b/wx-config-1.4
index 70b6b2c..cb41292 100644
--- a/wx-config-1.4
+++ b/wx-config-1.4
@@ -27,7 +27,9 @@ else
_wxerror "Cannot find the wxWidgets profile configuration ( ${EPREFIX}/var/lib/wxwidgets/current )"
fi
- [ -z "${WXCONFIG}" -o "${WXCONFIG}" = none ] && _wxerror "No profile currently selected"
+ if [ -z "${WXCONFIG}" ] || [ "${WXCONFIG}" = none ]; then
+ _wxerror "No profile currently selected"
+ fi
if [ -x "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" ]; then
exec "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" "$@"
@@ -35,4 +37,3 @@ else
_wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )"
fi
fi
-
diff --git a/wxrc-1.4 b/wxrc-1.4
index 1757bf8..e4d4446 100644
--- a/wxrc-1.4
+++ b/wxrc-1.4
@@ -27,7 +27,9 @@ else
_wxerror "Cannot find the wxWidgets profile configuration ( ${EPREFIX}/var/lib/wxwidgets/current )"
fi
- [ -z "${WXCONFIG}" -o "${WXCONFIG}" = none ] && _wxerror "No profile currently selected"
+ if [ -z "${WXCONFIG}" ] || [ "${WXCONFIG}" = none ]; then
+ _wxerror "No profile currently selected"
+ fi
if [ -x "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" ]; then
exec "$("${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" --utility=wxrc)" "$@"
@@ -35,4 +37,3 @@ else
_wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )"
fi
fi
-