Fix artifact extraction

This commit is contained in:
stefanprodan 2020-06-10 11:55:54 +03:00
parent dd736c7df8
commit 9c18d044de
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ func (r *KustomizationReconciler) download(kustomization kustomizev1.Kustomizati
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
cmd := fmt.Sprintf("cd %s && curl -sL %s -o artifact.tar.gz && tar -xzf artifact.tar.gz --strip-components=1 -C .",
cmd := fmt.Sprintf("cd %s && curl -sL %s -o artifact.tar.gz && tar -xzf artifact.tar.gz -C .",
tmpDir, url)
command := exec.CommandContext(ctx, "/bin/sh", "-c", cmd)
output, err := command.CombinedOutput()