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. #