summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 02:04:51 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 02:05:31 (EDT)
commit38b754971817f3d372bfe4bf5c1fb1fc66668e8d (patch)
tree530dcbd7d8439893ceee85e58000909be963a028 /tests
parent48a3f66f63720822ad0e9e9ca5772d8d92071875 (diff)
tests/ob_parse_dep.sh: Replace echo and improve quotes in eval cmd
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ob_parse_dep.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ob_parse_dep.sh b/tests/ob_parse_dep.sh
index 1684a3f..77351d0 100755
--- a/tests/ob_parse_dep.sh
+++ b/tests/ob_parse_dep.sh
@@ -36,8 +36,8 @@ testcase()
result='ok_'
for comp in pkg archqual rel ver arches; do
- test_comp="$(eval echo \"\$\{test_${comp}\}\")"
- good_comp="$(eval echo \"\$\{${comp}\}\")"
+ test_comp="$(eval "printf '%s' \"\${test_${comp}}\"")"
+ good_comp="$(eval "printf '%s' \"\${${comp}}\"")"
if [ "${test_comp}" != "${good_comp}" ]; then
diag_ "$(printf 'Dependency "%s", component "%s":' \
"${dep}" "${comp}")"