fix env to check for in configs, derp

This commit is contained in:
Jay Gabriels 2020-08-14 15:03:14 -07:00
parent fd7c6fa09f
commit 1f51ea9ddf
No known key found for this signature in database
GPG Key ID: 47EC2E34963C2D56

View File

@ -140,7 +140,7 @@ func getOrSetDefaults(envVar string) {
s := viper.GetString(envVar)
// envs that need a trailing slash
if envVar == "GHORG_SCM_TYPE" || envVar == "GHORG_ABSOLUTE_PATH_TO_CLONE_TO" {
if envVar == "GHORG_SCM_BASE_URL" || envVar == "GHORG_ABSOLUTE_PATH_TO_CLONE_TO" {
os.Setenv(envVar, EnsureTrailingSlash(s))
} else {
os.Setenv(envVar, s)