1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00
This commit is contained in:
6543 2024-11-06 00:05:28 +01:00
parent 388f84e507
commit 22d5528d80

View File

@ -184,9 +184,9 @@ func (e *lxc) StartStep(ctx context.Context, step *types.Step, taskUUID string)
}
env = append(env, "PATH="+os.Getenv("PATH"))
defaultCloneImage := strings.Split(constant.DefaultCloneImage, ":")
defaultCloneImage := strings.Split(constant.DefaultClonePlugin, ":")
if len(defaultCloneImage) != 2 {
err := fmt.Errorf("%s does not split in two but in %v", constant.DefaultCloneImage, defaultCloneImage)
err := fmt.Errorf("%s does not split in two but in %v", constant.DefaultClonePlugin, defaultCloneImage)
log.Error().Err(err).Msg("")
return err
}