Skip to content

Commit

Permalink
Fix update_multilingual_cask script after RuboCop style fix (#86760)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikMinekus authored Jul 29, 2020
1 parent c47df98 commit 848fed0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions developer/bin/update_multilangual_casks
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ url = cask.split(" url \"")[1].split("\"")[0]
version = sys.argv[2]

for line in cask.split("\n"):
if line.startswith(" version '"):
print " version '" + version + "'"
elif line.startswith(" sha256 '"):
language = cask.split(line)[1].split("'")[1].split("'")[0]
print " sha256 '" + getsha(url, version, language) + "'"
if line.startswith(" version \""):
print " version \"" + version + "\""
elif line.startswith(" sha256 \""):
language = cask.split(line)[1].split("\"")[1].split("\"")[0]
print " sha256 \"" + getsha(url, version, language) + "\""
else:
print line

0 comments on commit 848fed0

Please sign in to comment.