Skip to content

Commit

Permalink
fix: add elfi if not in container and in git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaffen committed Feb 14, 2025
1 parent ca24694 commit 242cf41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/initializers/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Hdm::VERSION = if File.exist? '/VERSION'
File.read('/VERSION')
elsif system("git --version >>/dev/null 2>&1")
`git describe`.strip

Check failure on line 4 in config/initializers/version.rb

View workflow job for this annotation

GitHub Actions / RuboCop

Layout/IndentationWidth: Use 2 (not 3) spaces for indentation. (https://rubystyle.guide#spaces-indentation)
else
'unknown'

Check failure on line 6 in config/initializers/version.rb

View workflow job for this annotation

GitHub Actions / RuboCop

Layout/IndentationWidth: Use 2 (not 1) spaces for indentation. (https://rubystyle.guide#spaces-indentation)
end

0 comments on commit 242cf41

Please sign in to comment.