Skip to content

Commit

Permalink
Merge pull request #4748 from ocsbrandon/master
Browse files Browse the repository at this point in the history
Support other names for GNU tar
  • Loading branch information
rjnagal committed Mar 3, 2015
2 parents ccfd7da + a63338b commit 084c08e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 084c08e

Please sign in to comment.