diff --git a/src/gcc.ps1 b/src/gcc.ps1 index ee8f7da..e9ce286 100644 --- a/src/gcc.ps1 +++ b/src/gcc.ps1 @@ -2,6 +2,11 @@ clear # Used for super fast file extraction Add-Type -AssemblyName System.IO.Compression.FileSystem +# Delete previously existing mingw installation which was installed using this script +if (Test-Path "C:\mingw") { + Remove-Item -Paht "C:\mingw" -Recurse -Force +} + # Setting the directory as temp cd $env:TEMP diff --git a/src/gccLLVM.ps1 b/src/gccLLVM.ps1 index 499cff2..0e554dd 100644 --- a/src/gccLLVM.ps1 +++ b/src/gccLLVM.ps1 @@ -2,6 +2,11 @@ clear # Used for super fast file extraction Add-Type -AssemblyName System.IO.Compression.FileSystem +# Delete previously existing mingw installation which was installed using this script +if (Test-Path "C:\mingw") { + Remove-Item -Paht "C:\mingw" -Recurse -Force +} + # Setting the directory as temp cd $env:TEMP