diff --git a/hack/make/.integration-daemon-stop b/hack/make/.integration-daemon-stop index 63f7f361b4..4f7c8acb8e 100644 --- a/hack/make/.integration-daemon-stop +++ b/hack/make/.integration-daemon-stop @@ -11,7 +11,9 @@ if [ ! "$(go env GOOS)" = 'windows' ]; then echo >&2 "warning: PID $pid from $pidFile had a nonzero exit code" fi root=$(dirname "$pidFile")/root - umount "$root" || true + if [ -d "$root" ]; then + umount "$root" || true + fi done if [ -z "$DOCKER_TEST_HOST" ]; then