Only include executable files in loaded plugins

This commit is contained in:
bad 2022-07-29 01:08:52 +02:00
parent b18a664274
commit 079a549c4a

View file

@ -13,7 +13,7 @@ let
buildInputs = [makeWrapper]; buildInputs = [makeWrapper];
postBuild = '' postBuild = ''
wrapProgramArgs=() wrapProgramArgs=()
for plugin in ${plugins_path}/lib/rizin/plugins/*; do for plugin in $(find -L lib/rizin/plugins -type f -executable); do
wrapProgramArgs+=("--add-flags") wrapProgramArgs+=("--add-flags")
wrapProgramArgs+=("-l") wrapProgramArgs+=("-l")
wrapProgramArgs+=("--add-flags") wrapProgramArgs+=("--add-flags")