mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-09-11 20:19:59 +00:00
create cluster ISO image
This commit is contained in:
14
pkg/helpers/env.go
Normal file
14
pkg/helpers/env.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package helpers
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
// GetEnv - Lookup the environment variable provided and set to default value if variable isn't found
|
||||
func GetEnv(key, fallback string) string {
|
||||
if value := os.Getenv(key); len(value) > 0 {
|
||||
return value
|
||||
}
|
||||
|
||||
return fallback
|
||||
}
|
Reference in New Issue
Block a user