diff --git a/setup.ps1 b/setup.ps1 index 28bd110..898c720 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -1,5 +1,3 @@ -using namespace System.IO; - # exit the script if the exit code is greater than 0 function CheckExitCode { if ($LastExitCode -gt 0) { @@ -10,7 +8,7 @@ function CheckExitCode { # exit the script if the file don't exist function CheckFileExist($path) { - if (![File]::Exists($path)) { + if (![IO.File]::Exists($path)) { Write-Host "`nFile is missing:`n`n$path`n" -ForegroundColor Red exit }