Skip to content

Commit

Permalink
fix: error from mktemp command in MacOS. (#1837)
Browse files Browse the repository at this point in the history
* fix: error from mktemp command in MacOS.

* [ci skip] udpate temp name.

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy authored Jun 4, 2017
1 parent 023cad4 commit e7ae13d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ coverage.out
/indexers
/log
/public/img/avatar
/integrations/gitea-integration
/integrations/gitea-integration
15 changes: 7 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
DIST := dist
IMPORT := code.gitea.io/gitea

ifeq ($(OS), Windows_NT)
EXECUTABLE := gitea.exe
else
EXECUTABLE := gitea
endif

BINDATA := modules/{options,public,templates}/bindata.go
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
JAVASCRIPTS :=
Expand All @@ -22,7 +15,13 @@ SOURCES ?= $(shell find . -name "*.go" -type f)

TAGS ?=

TMPDIR := $(shell mktemp -d)
TMPDIR := $(shell mktemp -d 2>/dev/null || mktemp -d -t 'gitea-temp')

ifeq ($(OS), Windows_NT)
EXECUTABLE := gitea.exe
else
EXECUTABLE := gitea
endif

ifneq ($(DRONE_TAG),)
VERSION ?= $(subst v,,$(DRONE_TAG))
Expand Down

0 comments on commit e7ae13d

Please sign in to comment.