build: ensure build task get the proper profile name.
This commit is contained in:
parent
72d45c2cf5
commit
0206e04b3f
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ package builder
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/roddhjav/apparmor.d/pkg/paths"
|
"github.com/roddhjav/apparmor.d/pkg/paths"
|
||||||
"github.com/roddhjav/apparmor.d/pkg/prebuild"
|
"github.com/roddhjav/apparmor.d/pkg/prebuild"
|
||||||
|
|
@ -33,7 +34,7 @@ type Option struct {
|
||||||
|
|
||||||
func NewOption(file *paths.Path) *Option {
|
func NewOption(file *paths.Path) *Option {
|
||||||
return &Option{
|
return &Option{
|
||||||
Name: file.Base(),
|
Name: strings.TrimSuffix(file.Base(), ".apparmor.d"),
|
||||||
File: file,
|
File: file,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue