diff --git a/example1/Makefile b/example1/Makefile index 9fc318d..7b4c2b6 100644 --- a/example1/Makefile +++ b/example1/Makefile @@ -1,3 +1,3 @@ all: - go build - ./example1 + # go build + GO111MODULE="off" go run main.go diff --git a/example2/Makefile b/example2/Makefile index 250e900..7b4c2b6 100644 --- a/example2/Makefile +++ b/example2/Makefile @@ -1,3 +1,3 @@ all: - go build - ./example2 + # go build + GO111MODULE="off" go run main.go diff --git a/example2/main.go b/example2/main.go index f19adf4..2e94c7f 100644 --- a/example2/main.go +++ b/example2/main.go @@ -1,11 +1,11 @@ package main import "log" -import "fmt" +// import "fmt" import "git.wit.org/wit/shell" func main() { - tmp, output, err := shell.Run("cat /etc/issue") - log.Println("cat /etc/issue returned", tmp, "error =", err) - fmt.Print(output) + err := shell.Run("cat /etc/issue") + log.Println("cat /etc/issue returned", err) + // fmt.Print(output) }