summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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}")"