forked from forgejo/forgejo
Make sure both scripts/ can live side by side (#1264)
This commit is contained in:
parent
42032fdecf
commit
780cb692d6
2 changed files with 16 additions and 27 deletions
19
scripts/generate-gitignores.go
vendored
19
scripts/generate-gitignores.go
vendored
|
@ -1,4 +1,4 @@
|
|||
// +build !build
|
||||
// +build ignore
|
||||
|
||||
package main
|
||||
|
||||
|
@ -17,17 +17,14 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
var (
|
||||
prefix = "gitea-gitignore"
|
||||
url = "https://api.github.com/repos/github/gitignore/tarball"
|
||||
destination = ""
|
||||
)
|
||||
|
||||
func init() {
|
||||
flag.StringVar(&destination, "dest", "options/gitignore/", "destination for the gitignores")
|
||||
}
|
||||
|
||||
func main() {
|
||||
var (
|
||||
prefix = "gitea-gitignore"
|
||||
url = "https://api.github.com/repos/github/gitignore/tarball"
|
||||
destination = ""
|
||||
)
|
||||
|
||||
flag.StringVar(&destination, "dest", "options/gitignore/", "destination for the gitignores")
|
||||
flag.Parse()
|
||||
|
||||
file, err := ioutil.TempFile(os.TempDir(), prefix)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue