check if default config file paths exist
()
| 60 | |
| 61 | // check if default config file paths exist |
| 62 | func configFilePath() (string, bool) { |
| 63 | for _, path := range default_config_paths { |
| 64 | if _, err := os.Stat(path); err == nil { |
| 65 | return path, true |
| 66 | } |
| 67 | } |
| 68 | return "", false |
| 69 | } |
| 70 | |
| 71 | func lock(stage string) { |
| 72 | switch stage { |