summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/generate-gitignores.go4
-rw-r--r--build/generate-licenses.go4
2 files changed, 6 insertions, 2 deletions
diff --git a/build/generate-gitignores.go b/build/generate-gitignores.go
index 0f56ff3a89..f341c1ec48 100644
--- a/build/generate-gitignores.go
+++ b/build/generate-gitignores.go
@@ -15,6 +15,8 @@ import (
"path"
"path/filepath"
"strings"
+
+ "code.gitea.io/gitea/modules/util"
)
func main() {
@@ -33,7 +35,7 @@ func main() {
log.Fatalf("Failed to create temp file. %s", err)
}
- defer os.Remove(file.Name())
+ defer util.Remove(file.Name())
resp, err := http.Get(url)
diff --git a/build/generate-licenses.go b/build/generate-licenses.go
index 15db19e70a..53623e4193 100644
--- a/build/generate-licenses.go
+++ b/build/generate-licenses.go
@@ -15,6 +15,8 @@ import (
"path"
"path/filepath"
"strings"
+
+ "code.gitea.io/gitea/modules/util"
)
func main() {
@@ -33,7 +35,7 @@ func main() {
log.Fatalf("Failed to create temp file. %s", err)
}
- defer os.Remove(file.Name())
+ defer util.Remove(file.Name())
resp, err := http.Get(url)