Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
Use 'sh' rather than 'bash' for compatibility with busybox and boot2d…
Browse files Browse the repository at this point in the history
…ocker
  • Loading branch information
adfernandes committed Oct 15, 2015
1 parent 577208a commit 8deac2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion export.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ func (e *Export) TarLayers(w io.Writer) error {
}
defer os.Chdir(cwd)

cmd := exec.Command("sudo", "/bin/bash", "-c", "tar cOf - *")
cmd := exec.Command("sudo", "/bin/sh", "-c", "tar cOf - *")
stdout, err := cmd.StdoutPipe()
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion image.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (e *ExportedImage) TarLayer() error {
}
defer os.Chdir(cwd)

cmd := exec.Command("sudo", "/bin/bash", "-c", "tar cvf ../layer.tar ./")
cmd := exec.Command("sudo", "/bin/sh", "-c", "tar cvf ../layer.tar ./")
out, err := cmd.CombinedOutput()
if err != nil {
println(string(out))
Expand Down

0 comments on commit 8deac2f

Please sign in to comment.