esv: improve configuration path code
This commit is contained in:
parent
3507d9ca24
commit
692d413bfa
1 changed files with 5 additions and 6 deletions
5
esv.d
5
esv.d
|
@ -108,9 +108,9 @@ config:
|
|||
configPath = environment.get(cf.configEnv, cf.configPath)
|
||||
.expandTilde();
|
||||
try {
|
||||
if (cFlag) {
|
||||
if (cFlag)
|
||||
configPath = cFlag.expandTilde();
|
||||
} else {
|
||||
|
||||
if (!configPath.exists()) {
|
||||
mkdirRecurse(dirName(configPath));
|
||||
configPath.write(format!
|
||||
|
@ -128,7 +128,6 @@ key = %s
|
|||
#verse-numbers = false
|
||||
"(cf.apiKey));
|
||||
}
|
||||
}
|
||||
readINIFile(ini, configPath);
|
||||
} catch (FileException e) {
|
||||
/* filesystem syscall errors */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue