File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 7
7
"os"
8
8
"os/signal"
9
9
"path/filepath"
10
+ "slices"
10
11
"strings"
11
12
"syscall"
12
13
@@ -49,7 +50,6 @@ func (strings *stringslice) String() string {
49
50
}
50
51
51
52
func (strings * stringslice ) Set (value string ) error {
52
- // TODO: Throw an error for duplicate `dest`
53
53
* strings = append (* strings , value )
54
54
return nil
55
55
}
@@ -150,6 +150,9 @@ func main() {
150
150
os .Exit (1 )
151
151
}
152
152
153
+ slices .Sort (configFiles )
154
+ configFiles = slices .Compact (configFiles )
155
+
153
156
if len (configFiles ) > 0 {
154
157
for _ , configFile := range configFiles {
155
158
err := loadConfig (configFile )
@@ -187,7 +190,8 @@ func main() {
187
190
cfg .NotifyContainersSignal = notifyContainerSignal
188
191
}
189
192
configs = config.ConfigFile {
190
- Config : []config.Config {cfg }}
193
+ Config : []config.Config {cfg },
194
+ }
191
195
}
192
196
193
197
all := false
You can’t perform that action at this time.
0 commit comments