diff options
Diffstat (limited to 'internal/osutil/osutil.go')
-rw-r--r-- | internal/osutil/osutil.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/osutil/osutil.go b/internal/osutil/osutil.go index 827988a0..3af67570 100644 --- a/internal/osutil/osutil.go +++ b/internal/osutil/osutil.go @@ -25,9 +25,9 @@ func IsExist(path string) bool { // CurrentUsername returns the current system user via environment variables. func CurrentUsername() string { - curUserName := os.Getenv("USER") - if len(curUserName) > 0 { - return curUserName + username := os.Getenv("USER") + if len(username) > 0 { + return username } return os.Getenv("USERNAME") |