Change order of delete to get around broken symlink issue

This commit is contained in:
George Fleming authored and Andrew Schwartzmeyer committed 2016-03-01 15:57:16 -08:00
1 parent 5ab50a183f
commit d622477073
1 file changed
+5 -5
+5 -5
View File
@@ -1,5 +1,10 @@
function Clean-State
{
if (Test-Path $FullyQualifiedLink)
{
Remove-Item $FullyQualifiedLink -Force
}
if (Test-Path $FullyQualifiedFile)
{
Remove-Item $FullyQualifiedFile -Force
@@ -9,11 +14,6 @@
{
Remove-Item $FullyQualifiedFolder -Recurse -Force
}
if (Test-Path $FullyQualifiedLink)
{
Remove-Item $FullyQualifiedLink -Force
}
}
Describe "New-Item" {