mirror of
https://github.com/ANG13T/SatIntel.git
synced 2025-12-05 20:40:09 -08:00
update env key param name
This commit is contained in:
8
main.go
8
main.go
@@ -13,7 +13,7 @@ import (
|
||||
"github.com/ANG13T/SatIntel/cli"
|
||||
)
|
||||
|
||||
func setEnvironmentalVariable(env_key string) string {
|
||||
func setEnvironmentalVariable(envKey string) string {
|
||||
reader := bufio.NewReader(os.Stdin)
|
||||
fmt.Printf("%s: ", envKey)
|
||||
input, err := reader.ReadString('\n')
|
||||
@@ -33,10 +33,10 @@ func setEnvironmentalVariable(env_key string) string {
|
||||
}
|
||||
|
||||
|
||||
func checkEnvironmentalVariable(env_key string) {
|
||||
_environmental_variable, found := os.LookupEnv(env_key)
|
||||
func checkEnvironmentalVariable(envKey string) {
|
||||
_, found := os.LookupEnv(envKey)
|
||||
if !found {
|
||||
_environmental_variable = setEnvironmentalVariable(env_key)
|
||||
setEnvironmentalVariable(envKey)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user