Skip to content

Commit

Permalink
Merge pull request #753 from Shopify/use-homebrew-node
Browse files Browse the repository at this point in the history
Specify homebrew node when running homebrew-installed CLI
  • Loading branch information
amcaplan committed Nov 9, 2022
2 parents d3de7db + a2f708b commit 1f49072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/src/shopify-cli.rb.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ShopifyCli{% if formulaVersion %}AT{{formulaVersion}}{% endif %} < Formula
executable_path = "#{libexec}/bin/shopify"
FileUtils.move(executable_path, "#{executable_path}-original")
executable_content = <<~SCRIPT
#!/usr/bin/env node
#!/usr/bin/env #{libexec}/bin/node

process.env.SHOPIFY_RUBY_BINDIR = "#{Formula["ruby"].opt_bin}"
process.env.SHOPIFY_HOMEBREW_FORMULA = "shopify-cli{% if formulaVersion %}@{{formulaVersion}}{% endif %}"
Expand Down

0 comments on commit 1f49072

Please sign in to comment.