Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Commit

Permalink
fix duplication of commands
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Jun 25, 2019
1 parent 1fad65f commit 8985af0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/phases/commands.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package phases

import . "github.com/moshloop/konfigadm/pkg/types"
import (
. "github.com/moshloop/konfigadm/pkg/types"
)

var CommandsPhase AllPhases = command{}

Expand All @@ -12,6 +14,9 @@ func (p command) ApplyPhase(sys *Config, ctx *SystemContext) ([]Command, Filesys
commands = append(commands, sys.PreCommands...)
commands = append(commands, sys.Commands...)
commands = append(commands, sys.PostCommands...)
sys.PreCommands = nil
sys.Commands = nil
sys.PostCommands = nil

return commands, files, nil
}
Expand Down

0 comments on commit 8985af0

Please sign in to comment.