GetExtension, getDownload, getVar and getText works now

This commit is contained in:
Glen De Cauwsemaecker 2014-04-04 03:19:31 +02:00
parent ed12b644ca
commit cfb8ef0638
4 changed files with 32 additions and 9 deletions

View file

@ -14,11 +14,19 @@
<gitbash>https://msysgit.googlecode.com/files/Git-1.8.5.2-preview20131230.exe</gitbash>
</general>
<win7>
<b32>mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip</b32>
<b64>mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.5.4.zip</b64>
<b32>
<mongodb>http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip</mongodb>
</b32>
<b64>
<mongodb>http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.5.4.zip</mongodb>
</b64>
</win7>
<vista>
<b32>mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip</b32>
<b64>mongodb=http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2.5.4.zip</b64>
<b32>
<mongodb>http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip</mongodb>
</b32>
<b64>
<mongodb>http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2.5.4.zip</mongodb>
</b64>
</vista>
</variables>

View file

@ -1,3 +0,0 @@
for /f "delims=" %%a in ('..\\utilities\\get_category.exe %*') do (
%%a
)

View file

@ -1,3 +1,3 @@
for /f "delims=" %%a in ('..\\utilities\\get_extension.exe %1 %2') do (
%%a
for /F "delims=" %%F in ('call run_script .\\get_extension.ps1 %1') do (
set "%2=%%F"
)

View file

@ -0,0 +1,18 @@
$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"
}