summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2015-05-02 16:44:37 -0400
committerWilliam Hubbs <williamh@gentoo.org>2015-05-12 09:38:07 -0500
commitcbc006c7c848a1c119729aaa516bcd7869a98f0e (patch)
treea39258ba4fc5361926dbf17b0b10225616ec05aa
parentFix some logging issues (diff)
downloadgentoo-functions-cbc006c7c848a1c119729aaa516bcd7869a98f0e.tar.gz
gentoo-functions-cbc006c7c848a1c119729aaa516bcd7869a98f0e.tar.bz2
gentoo-functions-cbc006c7c848a1c119729aaa516bcd7869a98f0e.zip
Fix eerror and eerrorn return codes0.10
These functions should return 1 to be compatible with libeinfo.
-rw-r--r--functions.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/functions.sh b/functions.sh
index d99f03e..82cde51 100644
--- a/functions.sh
+++ b/functions.sh
@@ -160,7 +160,7 @@ ewarn()
eerrorn()
{
if yesno "${EERROR_QUIET}"; then
- return 0
+ return 1
else
if ! yesno "${RC_ENDCOL}" && [ "${LAST_E_CMD}" = "ebegin" ]; then
printf "\n" >&2
@@ -173,7 +173,7 @@ eerrorn()
esyslog "daemon.err" "rc-scripts" "$*"
LAST_E_CMD="eerrorn"
- return 0
+ return 1
}
#
@@ -182,7 +182,7 @@ eerrorn()
eerror()
{
if yesno "${EERROR_QUIET}"; then
- return 0
+ return 1
else
if ! yesno "${RC_ENDCOL}" && [ "${LAST_E_CMD}" = "ebegin" ]; then
printf "\n" >&2
@@ -195,7 +195,7 @@ eerror()
esyslog "daemon.err" "rc-scripts" "$*"
LAST_E_CMD="eerror"
- return 0
+ return 1
}
#