From f011d6d4d7a53a99c9d213f686412513fe78d6a7 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Thu, 13 Jul 2017 06:09:29 -0500 Subject: [PATCH] fix: replace tmp with TMPDIR. (#2152) --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bf36ce4aa2..4e5a06c82b 100644 --- a/Makefile +++ b/Makefile @@ -282,9 +282,9 @@ public/css/index.css: $(STYLESHEETS) .PHONY: swagger-ui swagger-ui: rm -Rf public/assets/swagger-ui - git clone --depth=10 -b v3.0.7 --single-branch https://github.com/swagger-api/swagger-ui.git /tmp/swagger-ui - mv /tmp/swagger-ui/dist public/assets/swagger-ui - rm -Rf /tmp/swagger-ui + git clone --depth=10 -b v3.0.7 --single-branch https://github.com/swagger-api/swagger-ui.git $(TMPDIR)/swagger-ui + mv $(TMPDIR)/swagger-ui/dist public/assets/swagger-ui + rm -Rf $(TMPDIR)/swagger-ui $(SED_INPLACE) "s;http://petstore.swagger.io/v2/swagger.json;../../swagger.v1.json;g" public/assets/swagger-ui/index.html .PHONY: update-translations