From 1c4849c4032df1c2eb7ec5cba2eae74fecb4672d Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Mon, 16 Jan 2017 16:20:40 +0100 Subject: [PATCH] Fix hack/verify-staging-imports.sh on Mac --- hack/verify-staging-imports.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/verify-staging-imports.sh b/hack/verify-staging-imports.sh index 56944b4055a..14e289f8231 100755 --- a/hack/verify-staging-imports.sh +++ b/hack/verify-staging-imports.sh @@ -25,7 +25,7 @@ kube::golang::setup_env for dep in $(ls -1 ${KUBE_ROOT}/staging/src/k8s.io/); do - if go list -f {{.Deps}} ./vendor/k8s.io/${dep}/... | sed 's/ /\n/g' - | grep k8s.io/kubernetes | grep -v 'k8s.io/kubernetes/vendor' | LC_ALL=C sort -u | grep -e "."; then + if go list -f {{.Deps}} ./vendor/k8s.io/${dep}/... | tr " " '\n' | grep k8s.io/kubernetes | grep -v 'k8s.io/kubernetes/vendor' | LC_ALL=C sort -u | grep -e "."; then echo "${dep} has a cyclical dependency" exit 1 fi