mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07:50 +00:00
Merge pull request #4748 from ocsbrandon/master
Support other names for GNU tar
This commit is contained in:
commit
084c08e452
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user