Making it use USER env if no user is sspecified.

This commit is contained in:
Matt Burchett 2018-12-05 09:21:12 -06:00
parent 3146957dee
commit 1b9ab80b93

View File

@ -3,6 +3,7 @@ package main
import (
"flag"
"log"
"os"
"git.linuxrocker.com/mattburchett/go_tab-magic/pkg/config"
"git.linuxrocker.com/mattburchett/go_tab-magic/pkg/resolver"
@ -25,7 +26,7 @@ func main() {
}
if user == "" {
log.Fatal("Username is not specified.")
user = os.Getenv("USER")
}
cfg, err := config.GetConfig(c, debug)