Skip to content

Commit f9f4a38

Browse files
committed
Delete temporary files in trap to ensure it is always done
1 parent 91e3da2 commit f9f4a38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ test:
115115
nc -zw1 localhost 4475 && break; \
116116
sleep 1; \
117117
done; \
118-
trap 'kill "$$nginx_pid"' EXIT && \
118+
trap 'kill "$$nginx_pid"; rm -rf nginx/*_temp/' EXIT && \
119119
curl -fsS http://localhost:4475/ >/dev/null || exit_status="$$?" && \
120-
rm -rf nginx/*_temp/ && \
121120
exit "$${exit_status:-0}"
122121
@echo "make $@: test passed"

0 commit comments

Comments
 (0)