Skip to content

Commit

Permalink
Fix dist.sh to use main.go for version grepping
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnugget committed Jun 17, 2014
1 parent b69f48c commit f53d8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# Builds and packages the binaries for Darwin/amd64 and Linux/amd64

version=$(cat fzz.go | grep "VERSION\s*=" | awk '{print $NF}' | sed 's/\"//g')
version=$(cat main.go | grep "VERSION\s*=" | awk '{print $NF}' | sed 's/\"//g')
arch=$(go env GOARCH)

go test || (echo 'Tests failed. Stopping...' && exit 1)
Expand Down

0 comments on commit f53d8cb

Please sign in to comment.