Fix variable name
`key` may not be `DOKKU_ROOT`.
This commit is contained in:
1 parent
4e6a699140
commit
e9ee47a7c7
1 file changed
+3
-3
@@ -67,11 +67,11 @@ func VerifyAppName(appName string) (err error) {
|
|||||||
|
|
||||||
// MustGetEnv returns env variable or fails if it's not set
|
// MustGetEnv returns env variable or fails if it's not set
|
||||||
func MustGetEnv(key string) string {
|
func MustGetEnv(key string) string {
|
||||||
dokkuRoot := os.Getenv(key)
|
value := os.Getenv(key)
|
||||||
if dokkuRoot == "" {
|
if value == "" {
|
||||||
LogFail(fmt.Sprintf("%s not set!", key))
|
LogFail(fmt.Sprintf("%s not set!", key))
|
||||||
}
|
}
|
||||||
return dokkuRoot
|
return value
|
||||||
}
|
}
|
||||||
|
|
||||||
// LogFail is the failure log formatter
|
// LogFail is the failure log formatter
|
||||||
|
|||||||
Reference in new issue
Block a user