From c54ba9aec997005fd41305a4b44b8cd35fea20ce Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 10 Sep 2019 07:12:31 +0200 Subject: [PATCH] wrapGAppsHook: simplify taking env vars using indirect variable access must be better than eval --- pkgs/build-support/setup-hooks/wrap-gapps-hook.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh b/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh index 26a1107b85f3..98e2ec9c2e59 100644 --- a/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh +++ b/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh @@ -41,8 +41,7 @@ wrapGAppsHook() { fi for v in $wrapPrefixVariables GST_PLUGIN_SYSTEM_PATH_1_0 GI_TYPELIB_PATH GRL_PLUGIN_PATH; do - eval local dummy="\$$v" - gappsWrapperArgs+=(--prefix $v : "$dummy") + gappsWrapperArgs+=(--prefix $v : "${!v}") done if [[ -z "$dontWrapGApps" ]]; then