Skip to content

Commit

Permalink
Merge pull request #191 from atanasdinov/cosign-error-code
Browse files Browse the repository at this point in the history
Exit with status code 1 if cosign is not configured
  • Loading branch information
amartin120 authored Feb 23, 2024
2 parents 1b9d057 + 003560c commit d136d1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/hauler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"context"
"os"
"embed"
"os"

"github.com/rancherfederal/hauler/cmd/hauler/cli"
"github.com/rancherfederal/hauler/pkg/cosign"
Expand All @@ -23,8 +23,9 @@ func main() {
// ensure cosign binary is available
if err := cosign.EnsureBinaryExists(ctx, binaries); err != nil {
logger.Errorf("%v", err)
os.Exit(1)
}

if err := cli.New().ExecuteContext(ctx); err != nil {
logger.Errorf("%v", err)
cancel()
Expand Down

0 comments on commit d136d1b

Please sign in to comment.