summaryrefslogtreecommitdiffstats
path: root/lib/metadata
diff options
context:
space:
mode:
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()