codecombat/scripts/windows/coco-dev-setup/batch/scripts/get_extension.ps1
2014-04-04 03:19:31 +02:00

18 lines
No EOL
234 B
PowerShell
Executable file

$url = ($args[0].ToLower())
if($url.Contains("zip"))
{
Write-Host "zip"
}
elseif($url.Contains("exe"))
{
Write-Host "exe"
}
elseif($url.Contains("msi"))
{
Write-Host "msi"
}
elseif($url.Contains("tar.gz"))
{
Write-Host "tar.gz"
}