fix config reading errors from not touching this project in a few eons
This commit is contained in:
parent
b2c3508e8f
commit
2de0b66e4e
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include "bottles.hpp"
|
#include "bottles.hpp"
|
||||||
#include "cellar.hpp"
|
#include "cellar.hpp"
|
||||||
|
#include "config.hpp"
|
||||||
#include "internal/config.hpp"
|
#include "internal/config.hpp"
|
||||||
#include "output.hpp"
|
#include "output.hpp"
|
||||||
#include "version.hpp"
|
#include "version.hpp"
|
||||||
@ -68,7 +69,7 @@ void cellar::config::config_command(int argc, vector<string> argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
string newvalue = value;
|
string newvalue = value;
|
||||||
string oldvalue
|
string oldvalue;
|
||||||
if (global) {
|
if (global) {
|
||||||
if (config::global_config.find(key) != config::global_config.end()) {
|
if (config::global_config.find(key) != config::global_config.end()) {
|
||||||
oldvalue = config::global_config[key];
|
oldvalue = config::global_config[key];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user