Open DEberhardt opened 3 years ago
Hmm. That'll be tricky, it'll break for folks on non-Windows OSes if we change that to be \
for everyone. I suppose we should change this to use [IO.Path]::DirectorySeparatorChar
to find the right char to use in this instance.
An easy solution would be to change:
$FilePath = "$env:TMP/YOUR_PATH.txt"
to:
$FilePath = (Join-Path -Path $env:TMP -ChildPath 'YOUR_PATH.txt')
This seems to work correctly on PS7 and PS5.1 on Windows. On PS7 on Linux, I had to also define $env:TMP
before running Show-Karma
by using:
[Environment]::SetEnvironmentVariable('TMP','/tmp')
as it doesn't seem to be defined by default in my installation and I was getting errors like Access to the path '/YOUR_PATH.txt' is denied.
.
Describe "Koan Bug, Issue, or Help Request"
minor typo...
AboutCmdletVerbs.Koans.ps1 Line 25:
$FilePath = "$env:TMP/YOUR_PATH.txt"
This works to find the path all the way until the last assertion
Context "The Problematic Assertions"
Context "Your Attempts"
Context "Additional Information"
My local Environment:
Changing Line 25 to
$FilePath = "$env:TMP\YOUR_PATH.txt"
works for me. Is this intentional to highlight? I did not think so as it isn't described...