mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Change order of delete to get around broken symlink issue
This commit is contained in:
1 parent
5ab50a183f
commit
d622477073
1 file changed
+5
-5
@@ -1,5 +1,10 @@
|
|||||||
function Clean-State
|
function Clean-State
|
||||||
{
|
{
|
||||||
|
if (Test-Path $FullyQualifiedLink)
|
||||||
|
{
|
||||||
|
Remove-Item $FullyQualifiedLink -Force
|
||||||
|
}
|
||||||
|
|
||||||
if (Test-Path $FullyQualifiedFile)
|
if (Test-Path $FullyQualifiedFile)
|
||||||
{
|
{
|
||||||
Remove-Item $FullyQualifiedFile -Force
|
Remove-Item $FullyQualifiedFile -Force
|
||||||
@@ -9,11 +14,6 @@
|
|||||||
{
|
{
|
||||||
Remove-Item $FullyQualifiedFolder -Recurse -Force
|
Remove-Item $FullyQualifiedFolder -Recurse -Force
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Test-Path $FullyQualifiedLink)
|
|
||||||
{
|
|
||||||
Remove-Item $FullyQualifiedLink -Force
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "New-Item" {
|
Describe "New-Item" {
|
||||||
|
|||||||
Reference in new issue
Block a user