fix(install.go): fixed unused target
This commit is contained in:
parent
f1aa804854
commit
82d6e3aa87
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue