From a63338b73bf4d53a5a74ce281bfeaa35dcc1fdb1 Mon Sep 17 00:00:00 2001 From: Brandon Davis Date: Mon, 23 Feb 2015 17:00:32 -0600 Subject: [PATCH] Support other names for GNU tar The build is only looking for GNU tar as gtar on OSX, which is the name used when installed using brew. Macports installs it as gnutar, so check for that name if gtar is not found. --- build/common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/common.sh b/build/common.sh index 00fc18398f7..751dd9473d1 100644 --- a/build/common.sh +++ b/build/common.sh @@ -678,7 +678,11 @@ function kube::release::create_tarball() { # Find gnu tar if it is available local tar=tar if which gtar &>/dev/null; then - tar=gtar + tar=gtar + else + if which gnutar &>/dev/null; then + tar=gnutar + fi fi local tar_cmd=("$tar" "czf" "${tarfile}" "-C" "${stagingdir}" "kubernetes")