Improve console fluff
Go Test / test (push) Successful in 50s Details

This commit is contained in:
Fred Boniface 2024-04-28 10:33:58 +01:00
parent b93d36dacd
commit 2adb82a1b3
1 changed files with 2 additions and 2 deletions

View File

@ -132,11 +132,11 @@ func checkRunAsRoot() {
currUser, err := user.Current()
var msg string
if err != nil {
msg = "Unable to determine which user is running the application, but is not being run by root"
msg = "Unable to determine which user is running the application."
} else {
msg = fmt.Sprintf("Running as user: %s, %s", currUser.Uid, currUser.Username)
}
fmt.Println(blue + msg + reset)
fmt.Println(blue + msg + "\nRunning as non-root user" + reset)
return
}