We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 60fa0d6 + 6810bb5 commit d2ac690Copy full SHA for d2ac690
1 file changed
cmd/list.go
@@ -107,14 +107,15 @@ func (cmd *ListCmd) RunListSync(cobraCmd *cobra.Command, args []string) {
107
108
excludedPaths := ""
109
110
- for _, v := range *value.ExcludePaths {
111
- if len(excludedPaths) > 0 {
112
- excludedPaths += ", "
113
- }
+ if value.ExcludePaths != nil {
+ for _, v := range *value.ExcludePaths {
+ if len(excludedPaths) > 0 {
+ excludedPaths += ", "
114
+ }
115
- excludedPaths += v
116
+ excludedPaths += v
117
118
}
-
119
syncPaths = append(syncPaths, []string{
120
*value.ResourceType,
121
selector,
0 commit comments