summaryrefslogtreecommitdiff
path: root/scan.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-30 18:50:00 -0600
committerJeff Carr <[email protected]>2024-01-30 18:50:00 -0600
commitb6d81303333e4ae3a98da8838fb364a2ffaa797a (patch)
tree3a2763a731f3b71b0513d78939d2da81572ee58d /scan.go
parent69f56d1ef0341de10c7a80f3c7ea7da9469b7005 (diff)
more cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'scan.go')
-rw-r--r--scan.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/scan.go b/scan.go
index 1549815..e0c9761 100644
--- a/scan.go
+++ b/scan.go
@@ -3,6 +3,7 @@ package main
import (
"fmt"
+ "os/user"
"time"
"go.wit.com/log"
@@ -38,7 +39,8 @@ func (r *repo) newScan() bool {
uname := r.status.GetUserBranchName()
uver := r.status.GetUserVersion()
- if uname != "jcarr" {
+ usr, _ := user.Current()
+ if uname != usr.Username {
uver = uver + " (" + uname + ")"
}
r.userVersion.SetLabel(uver)