From d235e663df35a651d8f13aef0cb762da252376ca Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Tue, 4 Aug 2020 10:22:40 -0400 Subject: [PATCH] get-bc: exit with Extract()'s exit code --- cmd/get-bc/main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/get-bc/main.go b/cmd/get-bc/main.go index 23aca14..fa6203f 100644 --- a/cmd/get-bc/main.go +++ b/cmd/get-bc/main.go @@ -42,11 +42,9 @@ func main() { // Parse command line var args = os.Args - shared.Extract(args) + exitCode := shared.Extract(args) shared.LogInfo("Calling %v DID NOT TELL US WHAT HAPPENED\n", os.Args) - // could be more honest about our success here - os.Exit(0) - + os.Exit(exitCode) }