From 6ee54cef1fe680268233dba94c02d06b7d40b3df Mon Sep 17 00:00:00 2001 From: "Shaun Lawrie (via GitHub Actions)" Date: Fri, 15 Mar 2024 00:31:27 +1300 Subject: [PATCH] Use linux temp path on linux --- PwshSpectreConsole.Docs/src/powershell/UpdateDocs.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PwshSpectreConsole.Docs/src/powershell/UpdateDocs.ps1 b/PwshSpectreConsole.Docs/src/powershell/UpdateDocs.ps1 index d2c5f1b5..ef629591 100644 --- a/PwshSpectreConsole.Docs/src/powershell/UpdateDocs.ps1 +++ b/PwshSpectreConsole.Docs/src/powershell/UpdateDocs.ps1 @@ -20,6 +20,9 @@ $env:GIT_COMMITTER_EMAIL = 'shaun.r.lawrie@gmail.com' $outputPath = "$PSScriptRoot\..\content\docs\reference\" $asciiCastOutputPath = "$PSScriptRoot\..\assets\examples\" $stagingPath = "$env:TEMP\refs-staging" +if($IsLinux) { + $env:TEMP = "/tmp/refs-staging" +} if(Test-Path $stagingPath) { Remove-Item $stagingPath -Force -Recurse }