diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-08-22 06:33:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 00:33:01 -0400 |
commit | 353a5331d520a7299d922b670f6ccee0df8a345e (patch) | |
tree | 18a269af0f33681fcd6beebfac43eb8ff0e62646 /build | |
parent | 7854c447d920334e941f43d00622592a0869ef0d (diff) | |
download | gitea-353a5331d520a7299d922b670f6ccee0df8a345e.tar.gz gitea-353a5331d520a7299d922b670f6ccee0df8a345e.zip |
Remove deprecated licenses (#20222)
Diffstat (limited to 'build')
-rw-r--r-- | build/generate-licenses.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/generate-licenses.go b/build/generate-licenses.go index 02b41a229a..9a111bc811 100644 --- a/build/generate-licenses.go +++ b/build/generate-licenses.go @@ -39,6 +39,14 @@ func main() { defer util.Remove(file.Name()) + if err := os.RemoveAll(destination); err != nil { + log.Fatalf("Cannot clean destination folder: %v", err) + } + + if err := os.MkdirAll(destination, 0o755); err != nil { + log.Fatalf("Cannot create destination: %v", err) + } + req, err := http.NewRequest("GET", url, nil) if err != nil { log.Fatalf("Failed to download archive. %s", err) |