From 164c3e5e62ef435d22fddc11377edbf03c043d32 Mon Sep 17 00:00:00 2001 From: rsokolowski Date: Tue, 3 Feb 2015 23:11:26 +0100 Subject: [PATCH] Fix removal of release-staging files while running hack/e2e-test.sh --- build/common.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build/common.sh b/build/common.sh index 535cefe99b718..96fe4295727c7 100644 --- a/build/common.sh +++ b/build/common.sh @@ -473,9 +473,11 @@ function kube::release::package_tarballs() { mkdir -p "${RELEASE_DIR}" # Clean out cruft - find _output/release-stage/ -name '*~' -exec rm {} \; - find _output/release-stage/ -name '#*#' -exec rm {} \; - find _output/release-stage/ -name '.DS*' -exec rm {} \; + if [ -d "_output/release-stage/" ]; then + find _output/release-stage/ -name '*~' -exec rm {} \; + find _output/release-stage/ -name '#*#' -exec rm {} \; + find _output/release-stage/ -name '.DS*' -exec rm {} \; + fi kube::release::package_client_tarballs kube::release::package_server_tarballs