summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-12 12:18:42 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-12 12:18:42 (EDT)
commit2f1991e7b73eb7fa56b7d8f6cf55dda5b7575f28 (patch)
treea9955ecfe92ea530ec698962d1e2411ddf50349c /lib
parent7153a28fee3a81fa6a50c36703a8f61f6731cf0d (diff)
ob_parse_dep(): Drop echo and improve quotes in eval cmds
Diffstat (limited to 'lib')
-rw-r--r--lib/deps.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/deps.sh b/lib/deps.sh
index 20f121e..5ccaef7 100644
--- a/lib/deps.sh
+++ b/lib/deps.sh
@@ -158,9 +158,9 @@ ob_parse_dep()
# Set the specified variables.
for comp in pkg archqual rel ver arches plats; do
- comp_var="$(eval echo \"\$\{${comp}_var\}\")"
+ comp_var="$(eval "printf '%s' \"\${${comp}_var}\"")"
[ -z "${comp_var}" ] && continue
- eval ${comp_var}=\"\$\{${comp}\}\"
+ eval "${comp_var}=\"\${${comp}}\""
done
if [ -n "${host_arch}" ] && ! ob_arch_is_concerned \