main: fixed typo

Signed-off-by: Morten Linderud <morten@linderud.pw>
This commit is contained in:
Morten Linderud 2021-09-05 15:33:17 +02:00
parent 73be015150
commit bedb8e8c83
No known key found for this signature in database
GPG Key ID: E742683BA08CB2FF
1 changed files with 1 additions and 1 deletions

View File

@ -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))