🚧 hotfix

Append to logfile instead of always starting at the beginning of the file
This commit is contained in:
Vladislav Nepogodin 2022-02-22 03:06:19 +04:00
parent e4d170486c
commit 79b90168af
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -102,7 +102,7 @@ void arch_chroot(const std::string_view& command, bool follow) noexcept {
auto& config_data = config_instance->data();
const auto& mountpoint = std::get<std::string>(config_data["MOUNTPOINT"]);
const auto& cmd_formatted = fmt::format(FMT_COMPILE("arch-chroot {} {} 2>/tmp/cachyos-install.log"), mountpoint, command);
const auto& cmd_formatted = fmt::format(FMT_COMPILE("arch-chroot {} {} 2>>/tmp/cachyos-install.log"), mountpoint, command);
if (follow) {
tui::detail::follow_process_log_widget({"/bin/sh", "-c", cmd_formatted});
return;