diff options
| author | Jeff Carr <[email protected]> | 2025-09-04 08:35:43 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-04 08:35:43 -0500 |
| commit | 1096571f39c8019153ea62910a7bc370b25bd9f1 (patch) | |
| tree | f459546bb8bb22fb848f76e4f6e2d9a627802f25 /configureENV.go | |
| parent | 41851ed5846ca6551cb0a7ab4e82529dd488f8c3 (diff) | |
duh. use an ENV for thisv0.0.15
Diffstat (limited to 'configureENV.go')
| -rw-r--r-- | configureENV.go | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/configureENV.go b/configureENV.go index 9cf49bc..a03d050 100644 --- a/configureENV.go +++ b/configureENV.go @@ -29,21 +29,24 @@ import ( // err # if everything goes wrong, the error // -func ConfigureVerboseENV() error { - err := ConfigureENV() +func ConfigureENV() error { + err := doConfigureENV() + if os.Getenv("FORGE_VERBOSE") == "true" { log.Printf("FORGE_CONFIG = %s\n", os.Getenv("FORGE_CONFIG")) - log.Printf("FORGE_GOSRC = %s\n", os.Getenv("FORGE_GOSRC")) - log.Printf("FORGE_GOWORK = %v\n", os.Getenv("FORGE_GOWORK")) log.Printf("FORGE_REPOPB = %s\n", os.Getenv("FORGE_REPOPB")) - log.Printf("FORGE_URL = %s\n", os.Getenv("FORGE_URL")) log.Printf("FORGE_PATCHDIR = %s\n", os.Getenv("FORGE_PATCHDIR")) + log.Printf("FORGE_URL = %s\n", os.Getenv("FORGE_URL")) + log.Printf("FORGE_GOSRC = %s\n", os.Getenv("FORGE_GOSRC")) + log.Printf("FORGE_GOWORK = %v\n", os.Getenv("FORGE_GOWORK")) + log.Printf("FORGE_VERBOSE = %s\n", os.Getenv("FORGE_VERBOSE")) log.Printf("HOSTNAME = %s\n", os.Getenv("HOSTNAME")) - return err + } + return err } // set the ENV vars // always set them to _something_ even when everything seems to be failing -func ConfigureENV() error { +func doConfigureENV() error { var anyerr error // setup the forge config dir if os.Getenv("FORGE_CONFIG") == "" { |
