fix(install.go): fixed unused target

This commit is contained in:
Paul Fey 2025-03-04 16:46:12 +01:00
parent f1aa804854
commit 82d6e3aa87

View file

@ -167,7 +167,7 @@ func install_bin(instance string, path string, target string, program string) er
bnd_send_cmd_path, err := filepath.Abs(filepath.Join(instance, "exec", "bin", "bnd-send-cmd"))
contents := "#!/usr/bin/env bash\n" + bnd_send_cmd_path + " " + instance + " \"{\\\"command\\\": \\\"run\\\", \\\"package\\\": \\\"" + program + "\\\", \\\"workdir\\\": \\\"$PWD\\\", \\\"arguments\\\": \\\"$@\\\"}\"\n"
contents := "#!/usr/bin/env bash\n" + bnd_send_cmd_path + " " + instance + " \"{\\\"command\\\": \\\"run\\\", \\\"package\\\": \\\"" + program + "\\\", \\\"target\\\": \\\"" + target + "\\\", \\\"workdir\\\": \\\"$PWD\\\", \\\"arguments\\\": \\\"$@\\\"}\"\n"
err = os.WriteFile(bin_path, []byte(contents), 0755)
if err != nil {