👷 don't use folowing arch_chroot for string which doesnt produce any output

This commit is contained in:
Vladislav Nepogodin 2022-02-26 20:59:12 +04:00
parent fd307c9e98
commit e7e2865a3e
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -335,7 +335,7 @@ void set_hw_clock() noexcept {
auto ok_callback = [&] {
#ifdef NDEVENV
const auto& clock_type = menu_entries[static_cast<std::size_t>(selected)];
utils::arch_chroot(fmt::format(FMT_COMPILE("hwclock --systohc --{}"), clock_type));
utils::arch_chroot(fmt::format(FMT_COMPILE("hwclock --systohc --{}"), clock_type), false);
#endif
screen.ExitLoopClosure()();
};