summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/metadata/proteanos.sh17
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/metadata/proteanos.sh b/lib/metadata/proteanos.sh
index d0168ab..514f8cb 100644
--- a/lib/metadata/proteanos.sh
+++ b/lib/metadata/proteanos.sh
@@ -31,8 +31,10 @@ _ob_validate_source_name()
name="${1}"
- if echo "${name}" | grep -E "${_OB_NAME_RE_PROTEANOS}" \
- >/dev/null 2>&1; then
+ if grep -E "${_OB_NAME_RE_PROTEANOS}" >/dev/null 2>&1 <<-EOF
+ ${name}
+ EOF
+ then
case "${name}" in
src-*)
return 1
@@ -51,8 +53,10 @@ _ob_validate_binary_name()
name="${1}"
- if echo "${name}" | grep -E "${_OB_NAME_RE_PROTEANOS}" \
- >/dev/null 2>&1; then
+ if grep -E "${_OB_NAME_RE_PROTEANOS}" >/dev/null 2>&1 <<-EOF
+ ${name}
+ EOF
+ then
case "${name}" in
src-*)
return 1
@@ -71,8 +75,9 @@ _ob_validate_version()
version="${1}"
- echo "${version}" | grep -E "${_OB_VERSION_RE_PROTEANOS}" \
- >/dev/null 2>&1
+ grep -E "${_OB_VERSION_RE_PROTEANOS}" >/dev/null 2>&1 <<-EOF
+ ${version}
+ EOF
return ${?}
}