fixed cross-platform support
This commit is contained in:
parent
b54a0547b5
commit
1a2b29b4d1
@ -1,9 +1,9 @@
|
||||
Describe "Compare-Object" {
|
||||
$testDirectory = $env:HOME + "testDirectory"
|
||||
$nl = [Environment]::NewLine
|
||||
$slash = [Environment]::DirectorySeparatorChar
|
||||
|
||||
$slash = [System.IO.Path]::DirectorySeparatorChar
|
||||
$testDirectory = $HOME + $slash + "testDirectory"
|
||||
$dir = $testDirectory
|
||||
|
||||
New-Item $testDirectory -ItemType directory -Force
|
||||
|
||||
$content1 = "line 1" + $nl + "line 2"
|
||||
|
Loading…
Reference in New Issue
Block a user