From 2f1991e7b73eb7fa56b7d8f6cf55dda5b7575f28 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 12 Mar 2019 12:18:42 -0400 Subject: ob_parse_dep(): Drop echo and improve quotes in eval cmds --- 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 \ -- cgit v0.9.1