Don't copy dlls from system32 and Visual

This commit is contained in:
Maxime Gimeno 2021-03-25 11:44:02 +01:00
parent 497a92cdf7
commit 016717e120
1 changed files with 4 additions and 1 deletions

View File

@ -19,7 +19,10 @@ 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
cp "$dll_full_path" "$2"
fi
}