diff --git a/Makefile b/Makefile index bd511937482..3f80f48da3d 100644 --- a/Makefile +++ b/Makefile @@ -75,8 +75,8 @@ build: $(BUILD_DEPS) rm -f lotus lotus-storage-miner go build -o lotus ./cmd/lotus go build -o lotus-storage-miner ./cmd/lotus-storage-miner - rice append --exec lotus -i ./build - rice append --exec lotus-storage-miner -i ./build + go run github.com/GeertJohan/go.rice/rice append --exec lotus -i ./build + go run github.com/GeertJohan/go.rice/rice append --exec lotus-storage-miner -i ./build .PHONY: build benchmarks: diff --git a/build/paramfetch.go b/build/paramfetch.go index d534623654c..8e4b2079fca 100644 --- a/build/paramfetch.go +++ b/build/paramfetch.go @@ -27,7 +27,9 @@ type paramFile struct { } func GetParams(storage bool) error { - os.Mkdir(paramdir, 0755) + if err := os.Mkdir(paramdir, 0755); err != nil { + return err + } var params map[string]paramFile