From a2f708b87ec2fde696150a5885d6bd1fdea48b47 Mon Sep 17 00:00:00 2001 From: Ariel Caplan Date: Wed, 9 Nov 2022 16:17:41 +0200 Subject: [PATCH] Specify homebrew node when running homebrew-installed CLI --- packaging/src/shopify-cli.rb.liquid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/src/shopify-cli.rb.liquid b/packaging/src/shopify-cli.rb.liquid index 51c3e4d890..af03cae3a3 100644 --- a/packaging/src/shopify-cli.rb.liquid +++ b/packaging/src/shopify-cli.rb.liquid @@ -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 %}"