Skip to content

Commit

Permalink
Fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tcnksm committed Oct 19, 2016
1 parent 884fc9e commit cb56037
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ COMMIT=`git describe --always`
rm -rf pkg/
gox \
-ldflags "-X main.GitCommit=${COMMIT}" \
-parallel=5 \
-os="${XC_OS}" \
-arch="${XC_ARCH}" \
-output "pkg/{{.OS}}_{{.Arch}}/{{.Dir}}"

1 change: 1 addition & 0 deletions scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -e
DIR=$(cd $(dirname ${0})/.. && pwd)
cd ${DIR}

VERSION=$(grep "const Version " version.go | sed -E 's/.*"(.+)"$/\1/')
REPO="ghr"

# Run Compile
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func OutputVersion() string {
case res := <-verCheckCh:
if res.Outdated {
fmt.Fprintf(&buf,
"Latest version of ghr is %s, please upgrade!",
"Latest version of ghr is %s, please upgrade!\n",
res.Current)
}
}
Expand Down

0 comments on commit cb56037

Please sign in to comment.