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

This commit is contained in:
Maxime Gimeno 2021-03-30 10:08:33 +02:00
parent 016717e120
commit 618fe5cb62
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ copy_dll()
local dll_full_path=$(cygpath --unix --absolute "$1") local dll_full_path=$(cygpath --unix --absolute "$1")
echo "copy $dll_full_path to $2" echo "copy $dll_full_path to $2"
#remove all dlls from system and Visual #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" cp "$dll_full_path" "$2"
fi fi
} }