Merge pull request #25183 from ahmedtd/fix-wrap-gapps-hook

wrapGAppsHook: Correct `wrapProgram` invocations
This commit is contained in:
Peter Simons 2017-04-28 11:13:12 +02:00 committed by GitHub
commit edcff000d4

View File

@ -36,9 +36,10 @@ wrapGAppsHook() {
done
if [ -z "$dontWrapGApps" ]; then
for i in $prefix/bin/* $prefix/libexec/*; do
echo "Wrapping app $i"
wrapProgram "$i" "${gappsWrapperArgs[@]}"
find "${prefix}/bin" "${prefix}/libexec" -type f -executable -print0 \
| while IFS= read -r -d '' file; do
echo "Wrapping program $file"
wrapProgram "$file" "${gappsWrapperArgs[@]}"
done
fi
}