Skip to content

Commit

Permalink
Create directory of the install path of toolv2 if not exists
Browse files Browse the repository at this point in the history
Signed-off-by: 0fatal <[email protected]>
  • Loading branch information
0fatal committed Dec 18, 2023
1 parent e756a9c commit f1f540a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/task/task/install/install_tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ func NewInstallToolTask(curveadm *cli.CurveAdm, dc *topology.DeployConfig) (*tas
subname := fmt.Sprintf("host=%s", dc.GetHost())
t := task.NewTask("Install tool v2", subname, hc.GetSSHConfig())

t.AddStep(&step.CreateDirectory{
Paths: []string{filepath.Dir(path)},
ExecOptions: curveadm.ExecOptions(),
})
t.AddStep(&step.CopyFromContainer{
ContainerSrcPath: layout.ToolsV2BinaryPath,
ContainerId: containerId,
Expand Down

0 comments on commit f1f540a

Please sign in to comment.