zaquestion / lab

Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab
https://zaquestion.github.io/lab
Creative Commons Zero v1.0 Universal
1.11k stars 102 forks source link

internal/config/config.go: Do not save config when LAB_CORE_TOKEN is … #868

Open prarit opened 1 year ago

prarit commented 1 year ago

…used

@doronbehar reported a bug in lab where they specified LAB_CORE_TOKEN on the command line and then value was saved in the config file. Using LAB_CORE_TOKEN or LAB_CORE_HOST should not overwrite the config file.

Do not save the config when LAB_CORE_TOKEN or LAB_CORE_HOST is specified.