Skip to content

Commit

Permalink
mongosh: drop unneeded env_script
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Jul 30, 2024
1 parent d2528c2 commit 7827be3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Formula/m/mongosh.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "language/node"

class Mongosh < Formula
desc "MongoDB Shell to connect, configure, query, and work with your MongoDB database"
homepage "https://github.com/mongodb-js/mongosh"
Expand All @@ -20,8 +18,8 @@ class Mongosh < Formula
depends_on "node"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
(bin/"mongosh").write_env_script libexec/"bin/mongosh", PATH: "#{Formula["node"].opt_bin}:$PATH"
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]
end

test do
Expand Down

0 comments on commit 7827be3

Please sign in to comment.