mirror of
https://github.com/gabrie30/ghorg.git
synced 2026-05-05 11:56:09 +02:00
fix env to check for in configs, derp
This commit is contained in:
parent
fd7c6fa09f
commit
1f51ea9ddf
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user