Merge pull request #5385 from tstromberg/indent-driver

UI: Indent driver download and sudo command display
pull/5387/head
Thomas Strömberg 2019-09-18 06:08:30 -07:00 committed by GitHub
commit d3bd0f9298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)