1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Remove deprecated licenses (#20222)

This commit is contained in:
Gusted
2022-08-22 06:33:01 +02:00
committed by GitHub
parent 7854c447d9
commit 353a5331d5
5 changed files with 8 additions and 120 deletions

View File

@@ -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)