mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
GetExtension, getDownload, getVar and getText works now
This commit is contained in:
parent
ed12b644ca
commit
cfb8ef0638
4 changed files with 32 additions and 9 deletions
|
@ -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>
|
|
@ -1,3 +0,0 @@
|
|||
for /f "delims=" %%a in ('..\\utilities\\get_category.exe %*') do (
|
||||
%%a
|
||||
)
|
|
@ -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"
|
||||
)
|
18
scripts/windows/coco-dev-setup/batch/scripts/get_extension.ps1
Executable file
18
scripts/windows/coco-dev-setup/batch/scripts/get_extension.ps1
Executable 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"
|
||||
}
|
Loading…
Reference in a new issue