Skip to content

Commit

Permalink
Don't show script name when bundle exec and call ruby script directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Aug 21, 2024
1 parent 994f151 commit 1978c40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/bundled_gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ def self.uplevel
require_found = true
end
end
# Don't show script name when bundle exec and call ruby script directly.
if cl.path.end_with?("bundle")
frame_count = 0
break
end
end
require_found ? 1 : frame_count - 1
end
Expand Down

0 comments on commit 1978c40

Please sign in to comment.