Skip to content

Commit e7ae13d

Browse files
authored
fix: error from mktemp command in MacOS. (#1837)
* fix: error from mktemp command in MacOS. * [ci skip] udpate temp name. Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 023cad4 commit e7ae13d

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ coverage.out
4545
/indexers
4646
/log
4747
/public/img/avatar
48-
/integrations/gitea-integration
48+
/integrations/gitea-integration

Makefile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
DIST := dist
22
IMPORT := code.gitea.io/gitea
3-
4-
ifeq ($(OS), Windows_NT)
5-
EXECUTABLE := gitea.exe
6-
else
7-
EXECUTABLE := gitea
8-
endif
9-
103
BINDATA := modules/{options,public,templates}/bindata.go
114
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
125
JAVASCRIPTS :=
@@ -22,7 +15,13 @@ SOURCES ?= $(shell find . -name "*.go" -type f)
2215

2316
TAGS ?=
2417

25-
TMPDIR := $(shell mktemp -d)
18+
TMPDIR := $(shell mktemp -d 2>/dev/null || mktemp -d -t 'gitea-temp')
19+
20+
ifeq ($(OS), Windows_NT)
21+
EXECUTABLE := gitea.exe
22+
else
23+
EXECUTABLE := gitea
24+
endif
2625

2726
ifneq ($(DRONE_TAG),)
2827
VERSION ?= $(subst v,,$(DRONE_TAG))

0 commit comments

Comments
 (0)