mirror of
https://github.com/daeuniverse/dae.git
synced 2025-02-22 12:38:34 +07:00
fix panic
This commit is contained in:
parent
04702fd99a
commit
81676674c8
@ -95,7 +95,7 @@ func NewControlPlane(
|
||||
return nil, fmt.Errorf("rlimit.RemoveMemlock:%v", err)
|
||||
}
|
||||
pinPath := filepath.Join(consts.BpfPinRoot, consts.AppName)
|
||||
if err := os.MkdirAll(pinPath, 0755); !os.IsExist(err) {
|
||||
if err = os.MkdirAll(pinPath, 0755); err != nil && !os.IsExist(err) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user