fix: clean working dir with long space support on Windows (#2399)
This commit is contained in:
parent
2596001528
commit
e74345ecdc
@ -73,10 +73,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Clean workspace
|
- name: Clean workspace
|
||||||
run: |
|
run: |
|
||||||
Remove-Item -Path .\* -Force -Recurse
|
Remove-Item -Path "\\?\$(Get-Location)\*" -Force -Recurse
|
||||||
$path = "$Env:APPDATA\jan"
|
$path = "$Env:APPDATA\jan"
|
||||||
if (Test-Path $path) {
|
if (Test-Path $path) {
|
||||||
Remove-Item $path -Recurse -Force
|
Remove-Item "\\?\$path" -Recurse -Force
|
||||||
} else {
|
} else {
|
||||||
Write-Output "Folder does not exist."
|
Write-Output "Folder does not exist."
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user