EWxplicitely ban api-ms-win, as those dlls can come from different places.

This commit is contained in:
Maxime Gimeno
2021-03-30 10:15:48 +02:00
parent 016717e120
commit 618fe5cb62
@@ -20,7 +20,7 @@ copy_dll()
local dll_full_path=$(cygpath --unix --absolute "$1")
echo "copy $dll_full_path to $2"
#remove all dlls from system and Visual
if ! [[ "$dll_full_path" =~ "Visual" ]] && ! [[ "$dll_full_path" =~ "system32" ]]; then
if ! [[ "$dll_full_path" =~ "api-ms-win" ]] && ! [[ "$dll_full_path" =~ "system32" ]]; then
cp "$dll_full_path" "$2"
fi
}