From a73846758ae5a45311bbfd1ab4ab74172d1c9402 Mon Sep 17 00:00:00 2001 From: nareix Date: Fri, 10 Jun 2016 12:14:44 +0800 Subject: [PATCH] rename frag.go; update genStruct.sh --- atom/{otherStruct.go => frag.go} | 0 atom/genStruct.sh | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) rename atom/{otherStruct.go => frag.go} (100%) diff --git a/atom/otherStruct.go b/atom/frag.go similarity index 100% rename from atom/otherStruct.go rename to atom/frag.go diff --git a/atom/genStruct.sh b/atom/genStruct.sh index eebb079..f8bec11 100755 --- a/atom/genStruct.sh +++ b/atom/genStruct.sh @@ -1,4 +1,7 @@ #!/bin/bash -node --harmony_rest_parameters genStruct.js > struct.go && gofmt -w struct.go && go build . +node genStruct.js > struct.go && gofmt -w struct.go && go build . || { + echo + echo "Please use node version > 6.0.0" +}