PowerShell/test/powershell/Test-Common.ps1
2016-02-08 10:59:02 -08:00

23 lines
306 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"
}
}