mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-22 15:22:23 +08:00
...
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ try {
|
||||
throw "Input does not exist: $FileName"
|
||||
}
|
||||
$FileName = (Resolve-Path -Path $FileName).Path
|
||||
if (-not (Test-Path -Path "$($FileName).log")) {
|
||||
if (Test-Path -Path "$($FileName).log") {
|
||||
Remove-Item -Path "$($FileName).log" -Recurse | Out-Null
|
||||
}
|
||||
New-Item -ItemType Directory "$($FileName).log" | Out-Null
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ try {
|
||||
throw "Input does not exist: $FileName"
|
||||
}
|
||||
$FileName = (Resolve-Path -Path $FileName).Path
|
||||
if (-not (Test-Path -Path "$($FileName).log")) {
|
||||
if (Test-Path -Path "$($FileName).log") {
|
||||
Remove-Item -Path "$($FileName).log" -Recurse | Out-Null
|
||||
}
|
||||
New-Item -ItemType Directory "$($FileName).log" | Out-Null
|
||||
|
||||
Reference in New Issue
Block a user