mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 21:23:39 +00:00
Remove empty strings from slice before parsing agent config (#3387)
Fixes: https://github.com/woodpecker-ci/woodpecker/issues/3385
This commit is contained in:
@@ -275,7 +275,7 @@ func stringSliceAddToMap(sl []string, m map[string]string) error {
|
||||
if m == nil {
|
||||
m = make(map[string]string)
|
||||
}
|
||||
for _, v := range sl {
|
||||
for _, v := range utils.StringSliceDeleteEmpty(sl) {
|
||||
parts := strings.SplitN(v, "=", 2)
|
||||
switch len(parts) {
|
||||
case 2:
|
||||
|
Reference in New Issue
Block a user