wrapGAppsHook: simplify taking env vars

using indirect variable access must be better than eval
This commit is contained in:
Jan Tojnar
2019-09-10 07:12:31 +02:00
parent 3c1563f49d
commit c54ba9aec9

View File

@@ -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