From 8173bcbcc3a05333979b0da0a765b4dedde7448e Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 13 Mar 2019 03:54:58 -0400 Subject: Don't let libopkbuild errors cause exit with -e --- (limited to 'lib/metadata') 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() -- cgit v0.9.1