build: fix error when building rook in centos7

if I don't delete arg 'z' in 'tar -zxvf', compile process while return compilation fails in centos7.

Signed-off-by: ZhenLiu94 <zhenliu94@163.com>
This commit is contained in:
ZhenLiu94 committed 2020-10-20 16:31:46 +08:00
1 parent 9b40f17ec4
commit b83c8e9942
1 file changed
+1 -1
+1 -1
View File
@@ -36,7 +36,7 @@ install() {
dist=$(echo "${dist}" | tr "[:upper:]" "[:lower:]")
mkdir -p "${temp}"
wget "https://storage.googleapis.com/kubernetes-helm/helm-v2.13.1-${dist}-${arch}.tar.gz" -O "${temp}/helm.tar.gz"
tar -C "${temp}" -zxvf "${temp}/helm.tar.gz" --strip-components 1
tar -C "${temp}" -xvf "${temp}/helm.tar.gz" --strip-components 1
# The following lines are workaround of a CI failure caused by the old-Jenkins-file-is-used-in-CI problem.
# These lines will be removed as soom as PR5991 is merged..
mkdir "${temp}/${dist}-${arch}"