Skip to content

Commit

Permalink
lando-cli: drop unneeded rewrite_shebang
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Aug 3, 2024
1 parent 593c88f commit f47d018
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Formula/l/lando-cli.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
require "language/node"

class LandoCli < Formula
include Language::Node::Shebang

desc "Cli part of Lando"
homepage "https://docs.lando.dev/cli"
url "https://github.com/lando/cli/archive/refs/tags/v3.21.2.tar.gz"
Expand All @@ -27,10 +23,8 @@ class LandoCli < Formula
depends_on "node@18"

def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
# We have to replace the shebang in the main executable from "/usr/bin/env node"
rewrite_shebang detected_node_shebang, libexec/"lib/node_modules/@lando/cli/bin/lando"
bin.install_symlink Dir["#{libexec}/bin/*"]
system "npm", "install", *std_npm_args
bin.install_symlink libexec.glob("bin/*")
system bin/"lando", "config", "--channel=none"
end

Expand Down

0 comments on commit f47d018

Please sign in to comment.