From 52c7d05e76729f3027258c1c18024cd080139894 Mon Sep 17 00:00:00 2001 From: pauljako Date: Wed, 5 Mar 2025 14:00:26 +0100 Subject: [PATCH] feat(install.go): wrapped bins now use the bnd-run command --- install.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.go b/install.go index edb034e..0497585 100644 --- a/install.go +++ b/install.go @@ -165,9 +165,9 @@ 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")) + bnd_run_path, err := filepath.Abs(filepath.Join(instance, "exec", "bin", "bnd-run")) - contents := "#!/usr/bin/env bash\n" + bnd_send_cmd_path + " " + instance + " \"{\\\"command\\\": \\\"run\\\", \\\"package\\\": \\\"" + program + "\\\", \\\"target\\\": \\\"" + target + "\\\", \\\"workdir\\\": \\\"$PWD\\\", \\\"arguments\\\": \\\"$@\\\"}\"\n" + contents := "#!/usr/bin/env bash\nexec " + bnd_run_path + " -i " + instance + " -t " + target + " -w $PWD " + program + " $@\n" err = os.WriteFile(bin_path, []byte(contents), 0755) if err != nil {