Skip to content

Commit

Permalink
[CodeFactor] Apply fixes to commit fc17fc0
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
code-factor committed Aug 22, 2021
1 parent fc17fc0 commit 35b05e9
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions core/latte.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,15 @@ def self.getPkgfile

# TODO: implement begin.resuce,else,ensure,end
end
def self.downloadLatest()
file = IniFile.load("/tmp/#$query.ini")
data = file["package"]
puts "Release URL:"
puts data["Release"]
@RURL=data['Release']
system("wget #@RURL")




end
def self.downloadLatest
file = IniFile.load("/tmp/#{$query}.ini")
data = file['package']
puts 'Release URL:'
puts data['Release']
@RURL = data['Release']
system("wget #{@RURL}")
end
end
FileUtils.touch('info.log')
Helper.help if ARGV[0] == 'help'
Expand Down

0 comments on commit 35b05e9

Please sign in to comment.