From 5f9c683abf857df159f11caee8775328f19b942b Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Tue, 4 Jun 2019 19:28:57 +0200 Subject: [PATCH] main: return an error when running a command failed --- commands.go | 1 + 1 file changed, 1 insertion(+) diff --git a/commands.go b/commands.go index 523b8a74..0d61c892 100644 --- a/commands.go +++ b/commands.go @@ -37,6 +37,7 @@ func execCommand(cmdNames []string, args ...string) error { // this command was not found, try the next continue } + return err } return nil }