summaryrefslogtreecommitdiffstats
path: root/lib/metadata
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-12 22:31:03 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-12 22:31:03 (EDT)
commit564d31ce31815cb3ab727a707a084690147a1df3 (patch)
tree54a1747d4ce19706589217e7bd78ff8d342f7982 /lib/metadata
parent8edb778cef3934c15dc3140f6736399d1a2b0efc (diff)
_ob_get_upstreamver(), _ob_get_distrev(): Replace echo with printf
Diffstat (limited to 'lib/metadata')
-rw-r--r--lib/metadata/proteanos.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/metadata/proteanos.sh b/lib/metadata/proteanos.sh
index f889be7..d0168ab 100644
--- a/lib/metadata/proteanos.sh
+++ b/lib/metadata/proteanos.sh
@@ -83,7 +83,7 @@ _ob_get_upstreamver()
version="${1}"
- echo "${version%-*}"
+ printf '%s' "${version%-*}"
return 0
}
@@ -94,7 +94,7 @@ _ob_get_distrev()
version="${1}"
- echo "${version##*-}"
+ printf '%s' "${version##*-}"
return 0
}