File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 77 "os"
88 "os/signal"
99 "path/filepath"
10+ "slices"
1011 "strings"
1112 "syscall"
1213
@@ -49,7 +50,6 @@ func (strings *stringslice) String() string {
4950}
5051
5152func (strings * stringslice ) Set (value string ) error {
52- // TODO: Throw an error for duplicate `dest`
5353 * strings = append (* strings , value )
5454 return nil
5555}
@@ -150,6 +150,9 @@ func main() {
150150 os .Exit (1 )
151151 }
152152
153+ slices .Sort (configFiles )
154+ configFiles = slices .Compact (configFiles )
155+
153156 if len (configFiles ) > 0 {
154157 for _ , configFile := range configFiles {
155158 err := loadConfig (configFile )
@@ -187,7 +190,8 @@ func main() {
187190 cfg .NotifyContainersSignal = notifyContainerSignal
188191 }
189192 configs = config.ConfigFile {
190- Config : []config.Config {cfg }}
193+ Config : []config.Config {cfg },
194+ }
191195 }
192196
193197 all := false
You can’t perform that action at this time.
0 commit comments