Merge pull request #75450 from KoviRobi/fix-wrap-gapps-hook-shell-quoting

wrapGAppsHook: don't add empty variables (see also #75443)
This commit is contained in:
worldofpeace 2019-12-10 23:57:57 -05:00 committed by GitHub
commit 25879b3ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,9 @@ wrapGAppsHook() {
fi
for v in ${wrapPrefixVariables:-} GST_PLUGIN_SYSTEM_PATH_1_0 GI_TYPELIB_PATH GRL_PLUGIN_PATH; do
gappsWrapperArgs+=(--prefix "$v" : "${!v}")
if [ -n "${!v}" ]; then
gappsWrapperArgs+=(--prefix "$v" : "${!v}")
fi
done
if [[ -z "${dontWrapGApps:-}" ]]; then