fix(executor/local): skip existing files
This commit is contained in:
parent
d0d9e0c0ce
commit
d76270d1ba
|
@ -100,6 +100,9 @@ func (e *Local) Run(cmds []stage.Cmd) ([]stage.ExecutorResult, error) {
|
||||||
// Helper function to handle copyOut files
|
// Helper function to handle copyOut files
|
||||||
func handleCopyOut(result *stage.ExecutorResult, cmd stage.Cmd) error {
|
func handleCopyOut(result *stage.ExecutorResult, cmd stage.Cmd) error {
|
||||||
for _, filename := range cmd.CopyOut {
|
for _, filename := range cmd.CopyOut {
|
||||||
|
if _, ok := result.Files[filename]; ok {
|
||||||
|
continue
|
||||||
|
}
|
||||||
optional := false
|
optional := false
|
||||||
if strings.HasSuffix(filename, "?") {
|
if strings.HasSuffix(filename, "?") {
|
||||||
optional = true
|
optional = true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user