MAKE: update Makefile rules

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2021-11-03 17:38:50 -05:00
parent ad28138b84
commit 1b08d999eb
3 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,3 @@
all:
go build
./example1
# go build
GO111MODULE="off" go run main.go

View File

@ -1,3 +1,3 @@
all:
go build
./example2
# go build
GO111MODULE="off" go run main.go

View File

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