executePrivileged: stop progress bar before executing

This commit is contained in:
Max Headroom 2023-01-07 16:56:09 +01:00
parent 42f9da1ffc
commit 3f743a4428

View file

@ -32,6 +32,8 @@
using namespace nix; using namespace nix;
void executePrivileged(std::string program, Strings args) { void executePrivileged(std::string program, Strings args) {
stopProgressBar();
restoreProcessContext();
args.push_front(program); args.push_front(program);
auto exe = program; auto exe = program;
auto privCmds = Strings { auto privCmds = Strings {