Skip to content

Commit 2f65102

Browse files
committed
env script for update
1 parent 6290bd9 commit 2f65102

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Formula/b2c-cli.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ class B2cCli < Formula
1414

1515
def install
1616
system "npm", "install", *std_npm_args
17-
bin.install_symlink libexec.glob("bin/*")
17+
18+
# Create wrapper script that sets OCLIF client home for proper auto-update support
19+
# This prevents oclif from trying to update to a non-brew location
20+
(bin/"b2c").write_env_script libexec/"bin/b2c",
21+
B2C_OCLIF_CLIENT_HOME: lib/"client"
1822
end
1923

2024
test do

0 commit comments

Comments
 (0)