summaryrefslogtreecommitdiffstats
path: root/lib/metadata
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 03:54:58 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 03:54:58 (EDT)
commit8173bcbcc3a05333979b0da0a765b4dedde7448e (patch)
tree09eda12b33c4b81b202a21f1a869cd2f47b67314 /lib/metadata
parente59f223d3376b94a31131d1c5b72ea37fda47a00 (diff)
Don't let libopkbuild errors cause exit with -e
Diffstat (limited to 'lib/metadata')
-rw-r--r--lib/metadata/proteanos.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/metadata/proteanos.sh b/lib/metadata/proteanos.sh
index 4152847..6368668 100644
--- a/lib/metadata/proteanos.sh
+++ b/lib/metadata/proteanos.sh
@@ -72,11 +72,14 @@ _ob_validate_version()
local version="${1}"
shift 1 || _ob_abort
- grep -E "${_OB_VERSION_RE_PROTEANOS}" >/dev/null 2>&1 <<-EOF
+ if grep -E "${_OB_VERSION_RE_PROTEANOS}" >/dev/null 2>&1 <<-EOF
${version}
EOF
-
- return ${?}
+ then
+ return 0
+ else
+ return 1
+ fi
}
_ob_get_upstreamver()