Merge pull request #5385 from tstromberg/indent-driver
UI: Indent driver download and sudo command displaypull/5387/head
commit
d3bd0f9298
|
@ -250,7 +250,7 @@ func ExtractVMDriverVersion(s string) string {
|
|||
}
|
||||
|
||||
func setHyperKitPermissions(driverPath string) error {
|
||||
msg := fmt.Sprintf("A new hyperkit driver was installed. It needs elevated permissions to run. The following commands will be executed:\n sudo chown root:wheel %s\n sudo chmod u+s %s", driverPath, driverPath)
|
||||
msg := fmt.Sprintf("A new hyperkit driver was installed. It needs elevated permissions to run. The following commands will be executed:\n\n $ sudo chown root:wheel %s\n $ sudo chmod u+s %s\n", driverPath, driverPath)
|
||||
out.T(out.Permissions, msg, out.V{})
|
||||
|
||||
cmd := exec.Command("sudo", "chown", "root:wheel", driverPath)
|
||||
|
|
|
@ -46,7 +46,7 @@ func (cpb *progressBar) TrackProgress(src string, currentSize, totalSize int64,
|
|||
cpb.progress = pb.New64(totalSize)
|
||||
}
|
||||
p := pb.Full.Start64(totalSize)
|
||||
p.Set("prefix", filepath.Base(src+": "))
|
||||
p.Set("prefix", " > "+filepath.Base(src+": "))
|
||||
p.SetCurrent(currentSize)
|
||||
p.Set(pb.Bytes, true)
|
||||
|
||||
|
|
Loading…
Reference in New Issue