From 99182ac00b6ea65d089d0a28e077ddc8db44bb9e Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Sat, 11 Nov 2017 01:13:55 +0100 Subject: [PATCH] fixed makefile gox output template --- Makefile | 2 +- store/util.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cc77e0c..d85fa26 100644 --- a/Makefile +++ b/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 {} \; diff --git a/store/util.go b/store/util.go index 5b23c65..30a6022 100644 --- a/store/util.go +++ b/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) }