From 55aa1228251fd35afeb39aaa802911c92e1196ec Mon Sep 17 00:00:00 2001 From: Branch Vincent Date: Mon, 8 Apr 2024 20:44:46 -0700 Subject: [PATCH] jrsonnet: fix HEAD --- Formula/j/jrsonnet.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Formula/j/jrsonnet.rb b/Formula/j/jrsonnet.rb index f70e53113a1730..ed22b9731a1e35 100644 --- a/Formula/j/jrsonnet.rb +++ b/Formula/j/jrsonnet.rb @@ -29,7 +29,11 @@ class Jrsonnet < Formula def install system "cargo", "install", *std_cargo_args(path: "cmds/jrsonnet") - generate_completions_from_executable(bin/"jrsonnet", "-", "--generate") + if build.head? + generate_completions_from_executable(bin/"jrsonnet", "generate") + else + generate_completions_from_executable(bin/"jrsonnet", "-", "--generate") + end end test do