Skip to content

Commit

Permalink
bk-booster -af支持目录 TencentBlueKing#106
Browse files Browse the repository at this point in the history
  • Loading branch information
tbs60 committed Aug 9, 2023
1 parent 4b26910 commit eae45b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/backend/booster/bk_dist/booster/pkg/booster.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,12 @@ func (b *Booster) sendAdditionFile() {
if b.config.Works.Local || b.config.Works.Degraded {
return
}
for i, f := range b.config.Works.AdditionFiles {
if !filepath.IsAbs(f) {
c, _ := os.Getwd()
b.config.Works.AdditionFiles[i] = filepath.Join(c, f)
}
}

b.parseDir()

Expand Down

0 comments on commit eae45b3

Please sign in to comment.