From 2adb82a1b3748024dd2db6df56a204f4146438f5 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 28 Apr 2024 10:33:58 +0100 Subject: [PATCH] Improve console fluff --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index e02c655..abf6865 100644 --- a/main.go +++ b/main.go @@ -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 }