Skip to content

Commit

Permalink
fix whitespace error (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh2253 authored Oct 21, 2021
1 parent 8ed2b72 commit 92c61b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"errors"
"os/exec"
"strings"
)

// New instantiates a new Docker runtime object
Expand Down Expand Up @@ -70,7 +71,7 @@ func (d Docker) ExtractFileSystem(imageTarPath string, outputTarPath string, ima
if err != nil {
return err
}
_, err = exec.Command("docker", "export", string(containerId), ">", outputTarPath).Output()
_, err = exec.Command("docker", "export", strings.TrimSpace(string(containerId)), "-o", outputTarPath).Output()
if err != nil {
return err
}
Expand Down

0 comments on commit 92c61b3

Please sign in to comment.