|
@@ -28,7 +28,7 @@ func untar() {
|
|
|
|
|
|
var options archive.TarOptions
|
|
|
|
|
|
- //read the options from the pipe "ExtraFiles"
|
|
|
+ // read the options from the pipe "ExtraFiles"
|
|
|
if err := json.NewDecoder(os.NewFile(3, "options")).Decode(&options); err != nil {
|
|
|
fatal(err)
|
|
|
}
|
|
@@ -100,7 +100,7 @@ func invokeUnpack(decompressedArchive io.Reader, dest string, options *archive.T
|
|
|
return fmt.Errorf("Untar error on re-exec cmd: %v", err)
|
|
|
}
|
|
|
|
|
|
- //write the options to the pipe for the untar exec to read
|
|
|
+ // write the options to the pipe for the untar exec to read
|
|
|
if err := json.NewEncoder(w).Encode(options); err != nil {
|
|
|
w.Close()
|
|
|
return fmt.Errorf("Untar json encode to pipe failed: %v", err)
|