Browse Source

fixed makefile gox output template

dependabot/npm_and_yarn/web/prismjs-1.21.0
Max Schmitt 8 years ago
parent
commit
99182ac00b
  1. 2
      Makefile
  2. 2
      store/util.go

2
Makefile

@ -22,6 +22,6 @@ getGoDependencies:
buildProject:
@mkdir releases
gox -output="releases/{{.Dir}_{{.OS}}_{{.Arch}}/{{.Dir}"
gox -output="releases/{{.Dir}}_{{.OS}}_{{.Arch}}/{{.Dir}}"
find releases -maxdepth 1 -mindepth 1 -type d -exec cp build/config.json {} \;
find releases -maxdepth 1 -mindepth 1 -type d -exec tar -cvjf {}.tar.bz2 {} \;

2
store/util.go

@ -70,8 +70,6 @@ func generateRandomString(length uint) (string, error) {
return "", err
}
n := num.Int64()
// Make sure that the number/byte/letter is inside
// the range of printable ASCII characters (excluding space and DEL)
if unicode.IsLetter(rune(n)) {
result += string(n)
}

Loading…
Cancel
Save