summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/changelog.sh3
-rw-r--r--src/oh-parsechangelog.sh5
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/changelog.sh b/lib/changelog.sh
index 81e3332..5733353 100644
--- a/lib/changelog.sh
+++ b/lib/changelog.sh
@@ -111,8 +111,9 @@ ${_line}"
elif [ -n "${OH_CHANGELOG_SOURCE}" ]; then
OH_CHANGELOG_MAINTAINER="${_maintainer}"
OH_CHANGELOG_DATE="${_date}"
- "${_cb}"
_entries=$(($_entries + 1))
+ "${_cb}"
+ [ ${?} -ne 0 ] && return ${_entries}
fi
_expect=NEXT_OR_EOF
_blank_lines=
diff --git a/src/oh-parsechangelog.sh b/src/oh-parsechangelog.sh
index 86d8a8a..1b72ce3 100644
--- a/src/oh-parsechangelog.sh
+++ b/src/oh-parsechangelog.sh
@@ -30,7 +30,7 @@ main()
{
oh_changelog_parse changelog output
- printf 'Parsed %d entries.\n' ${?}
+ return 0
}
output()
@@ -50,7 +50,8 @@ output()
done <<EOF
${OH_CHANGELOG_CHANGES}
EOF
- echo
+
+ return 1
}
main