aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/command.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-04-28 16:57:37 +0200
committerEelco Dolstra <edolstra@gmail.com>2023-04-28 17:03:04 +0200
commit17e6b85d05b3d32df244b1d4e89aa41fd8bdcae8 (patch)
tree2c508889b0a4e29671b71bd0474519eb513fac5f /src/libcmd/command.cc
parent89d3cc5a47a448f624ea4c9b43eeee00dcc88a21 (diff)
nix: Support the --repair flag
Diffstat (limited to 'src/libcmd/command.cc')
-rw-r--r--src/libcmd/command.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc
index bedf11e2c..6c4648b34 100644
--- a/src/libcmd/command.cc
+++ b/src/libcmd/command.cc
@@ -121,6 +121,8 @@ ref<EvalState> EvalCommand::getEvalState()
#endif
;
+ evalState->repair = repair;
+
if (startReplOnEvalErrors) {
evalState->debugRepl = &AbstractNixRepl::runSimple;
};