Skip to content

Commit

Permalink
Add Ruby 1.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
laurilehmijoki committed May 28, 2014
1 parent 09a6ec1 commit bce2d1c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/s3_website_monadic
Expand Up @@ -99,11 +99,11 @@ def resolve_jar(project_root, logger)
project_root + "/s3_website-#{S3Website::VERSION}.jar",
(ENV['TMPDIR'] || '/tmp') + "/s3_website-#{S3Website::VERSION}.jar"
]
found_jar = ([development_jar_path] + released_jar_lookup_paths)
.select { |jar_path|
File.exists? jar_path
}
.first
found_jar = ([development_jar_path] + released_jar_lookup_paths).
select { |jar_path|
File.exists? jar_path
}.
first
jar_file =
if found_jar
found_jar
Expand Down

0 comments on commit bce2d1c

Please sign in to comment.