mirror of https://github.com/ericonr/sbctl.git
main: fixed typo
Signed-off-by: Morten Linderud <morten@linderud.pw>
This commit is contained in:
parent
73be015150
commit
bedb8e8c83
|
@ -67,7 +67,7 @@ func main() {
|
|||
})
|
||||
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
if strings.HasPrefix(err.Error(), "unknown comman") {
|
||||
if strings.HasPrefix(err.Error(), "unknown command") {
|
||||
logging.Println(err.Error())
|
||||
} else if errors.Is(err, os.ErrPermission) {
|
||||
logging.Error(fmt.Errorf("sbctl requires root to run: %w", err))
|
||||
|
|
Loading…
Reference in New Issue