File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
esp-config/src/bin/esp-config Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ fn main() -> Result<(), Box<dyn Error>> {
46
46
47
47
let mut configs = parse_configs ( & work_dir) ?;
48
48
let initial_configs = configs. clone ( ) ;
49
+ let mut previous_config = initial_configs. clone ( ) ;
50
+
49
51
let mut errors_to_show = None ;
50
52
51
53
loop {
@@ -62,7 +64,8 @@ fn main() -> Result<(), Box<dyn Error>> {
62
64
// done with the TUI
63
65
if let Some ( updated_cfg) = updated_cfg {
64
66
configs = updated_cfg. clone ( ) ;
65
- apply_config ( & work_dir, updated_cfg, initial_configs. clone ( ) ) ?;
67
+ apply_config ( & work_dir, updated_cfg. clone ( ) , previous_config. clone ( ) ) ?;
68
+ previous_config = updated_cfg;
66
69
} else {
67
70
println ! ( "Reverted configuration..." ) ;
68
71
apply_config ( & work_dir, initial_configs, vec ! [ ] ) ?;
You can’t perform that action at this time.
0 commit comments