Fix artifact extraction
This commit is contained in:
parent
dd736c7df8
commit
9c18d044de
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue