summaryrefslogtreecommitdiffstats
path: root/lib/metadata
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-12 22:36:49 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-12 22:36:49 (EDT)
commit84cf2433571977ad129335960647557552d9d549 (patch)
tree0b229eb363337a5497a9287e15702abc80d86909 /lib/metadata
parent564d31ce31815cb3ab727a707a084690147a1df3 (diff)
_ob_validate_*(): Replace echo with here-document in grep commands
Diffstat (limited to 'lib/metadata')
-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 ${?}
}