This commit is contained in:
Frank Skare
2019-05-26 05:39:00 +02:00
parent ba3bc48297
commit 1db733ae13

View File

@@ -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
}