Skip to content

Commit f26a8e4

Browse files
committed
Improve msgs in ConfigRootPasswd function
1 parent 34d0298 commit f26a8e4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/src.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ func ConfigRootPasswd() {
356356
if strings.Contains(args, "-nopasswd") {
357357
return
358358
}
359-
359+
fmYellow("Setting the root password:", conf.Password)
360360
cmd := exec.Command("chpasswd", "-R", "/mnt")
361361
stdin, err := cmd.StdinPipe()
362362
if err != nil {
@@ -368,8 +368,9 @@ func ConfigRootPasswd() {
368368
}()
369369
err = cmd.Run()
370370
if err != nil {
371-
fmt.Println(err)
372371
Error("Error setting the password;" + err.Error())
372+
} else {
373+
fmGreen("root password setted successfully!")
373374
}
374375

375376
}

0 commit comments

Comments
 (0)