mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
- Pester source code moved to `test/Pester`, deleted `ext-src`. - Pester tests (.ps1 files) moved to `test/powershell` - xUnit tests (.cs files) moved to `test/csharp` - Third-party script test moved to `test/shebang`
23 lines
307 B
PowerShell
23 lines
307 B
PowerShell
Function IsWindows
|
|
{
|
|
$pingCommand = Get-Command -CommandType Application ping
|
|
if ($pingCommand.Definition.IndexOf("\\") -ne -1)
|
|
{
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
Function GetTempDir
|
|
{
|
|
if (IsWindows)
|
|
{
|
|
return $env:TEMP
|
|
}
|
|
else
|
|
{
|
|
return "/tmp"
|
|
}
|
|
}
|
|
|