Skip to content

Commit

Permalink
feat: use File.Name if File.Src is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Aug 26, 2021
1 parent 7cdb020 commit 88600ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/controller/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ func (ctrl *Controller) Exec(ctx context.Context, param *Param, args []string) e
}
for _, file := range pkgInfo.Files {
if file.Name == exeName {
fileSrc = file.Src
if file.Src == "" {
fileSrc = file.Name
} else {
fileSrc = file.Src
}
break
}
}
Expand Down

0 comments on commit 88600ec

Please sign in to comment.