Skip to content

Commit f011d6d

Browse files
appleboylafriks
authored andcommitted
fix: replace tmp with TMPDIR. (#2152)
1 parent b639fa1 commit f011d6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ public/css/index.css: $(STYLESHEETS)
282282
.PHONY: swagger-ui
283283
swagger-ui:
284284
rm -Rf public/assets/swagger-ui
285-
git clone --depth=10 -b v3.0.7 --single-branch https://github.com/swagger-api/swagger-ui.git /tmp/swagger-ui
286-
mv /tmp/swagger-ui/dist public/assets/swagger-ui
287-
rm -Rf /tmp/swagger-ui
285+
git clone --depth=10 -b v3.0.7 --single-branch https://github.com/swagger-api/swagger-ui.git $(TMPDIR)/swagger-ui
286+
mv $(TMPDIR)/swagger-ui/dist public/assets/swagger-ui
287+
rm -Rf $(TMPDIR)/swagger-ui
288288
$(SED_INPLACE) "s;http://petstore.swagger.io/v2/swagger.json;../../swagger.v1.json;g" public/assets/swagger-ui/index.html
289289

290290
.PHONY: update-translations

0 commit comments

Comments
 (0)