Skip to content

Commit

Permalink
Fix binstubs
Browse files Browse the repository at this point in the history
  • Loading branch information
george-ma committed Jul 25, 2024
1 parent 0772616 commit 642cce0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exe/erb_lint
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$LOAD_PATH.unshift("#{__dir__}/../lib")
lib_path = File.expand_path("#{__dir__}/../lib")
$LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path)

require "erb_lint/cli"

Expand Down
3 changes: 3 additions & 0 deletions exe/erblint
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

lib_path = File.expand_path("#{__dir__}/../lib")
$LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path)

require "rainbow"

warn(Rainbow("Calling `erblint` is deprecated, please call the renamed executable `erb_lint` instead.").yellow)
Expand Down

0 comments on commit 642cce0

Please sign in to comment.