wrapGAppsHook: simplify taking env vars
using indirect variable access must be better than eval
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user