From 1db733ae13e4ff51deadcb24cfbb1a3b7737f962 Mon Sep 17 00:00:00 2001 From: Frank Skare Date: Sun, 26 May 2019 05:39:00 +0200 Subject: [PATCH] - --- setup.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }