From 7f422377e27d2cd37d5b0368eb5bbdf6bb70c9f1 Mon Sep 17 00:00:00 2001 From: Ivan Shvedunov Date: Thu, 18 Aug 2016 18:25:30 +0300 Subject: [PATCH] Fix caching of go dirs during build --- hack/make-rules/helpers/cache_go_dirs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hack/make-rules/helpers/cache_go_dirs.sh b/hack/make-rules/helpers/cache_go_dirs.sh index 693dc37d18b..128d339b166 100755 --- a/hack/make-rules/helpers/cache_go_dirs.sh +++ b/hack/make-rules/helpers/cache_go_dirs.sh @@ -28,6 +28,8 @@ if [[ -z "${1:-}" ]]; then fi CACHE="$1"; shift +trap "rm -f '${CACHE}'" HUP INT TERM ERR + # This is a partial 'find' command. The caller is expected to pass the # remaining arguments. #