look for the dot, too
git-svn-id: file:///home/svn/framework3/trunk@9219 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
2e926a1c22
commit
1fe426bcf5
|
@ -27,7 +27,7 @@ def upload(session,file,trgloc = "")
|
|||
end
|
||||
begin
|
||||
ext = file[file.rindex(".") .. -1]
|
||||
if ext and ext.downcase == "exe"
|
||||
if ext and ext.downcase == ".exe"
|
||||
fileontrgt = "#{location}\\svhost#{rand(100)}.exe"
|
||||
else
|
||||
fileontrgt = "#{location}\\TMP#{rand(100)}#{ext}"
|
||||
|
|
Loading…
Reference in New Issue