From f96c431bf7ee66feec11aa14af62a0f276b966f8 Mon Sep 17 00:00:00 2001 From: Applevangelist <72444570+Applevangelist@users.noreply.github.com> Date: Mon, 6 Dec 2021 17:31:05 +0100 Subject: [PATCH] Update appveyor.yml (#18) --- .appveyor/appveyor.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.appveyor/appveyor.yml b/.appveyor/appveyor.yml index 728fb073a..4bdefad74 100644 --- a/.appveyor/appveyor.yml +++ b/.appveyor/appveyor.yml @@ -59,7 +59,19 @@ build_script: dir c:\Projects dir echo "Removing old Documentation" - del Documentation\* + $FolderName = ".\Documentation" + if (Test-Path $FolderName) { + Write-Host "Folder Exists - Deleting contents" + # Perform Delete file from folder operation + del Documentation\* + } + else + { + #PowerShell Create directory if not exists + New-Item $FolderName -ItemType Directory + Write-Host "Folder Created successfully" + } + #del Documentation\* echo "Documenting" lua5.1 c:\Projects\luadocumentor\luadocumentor.lua -d ./Documentation "c:/Projects/Moose/Moose Development/Moose" echo "Updating Files"