mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 22:42:31 +08:00
👷 oops
This commit is contained in:
parent
5fe175b1ea
commit
4a472d7954
@ -355,6 +355,8 @@ void set_hostname(const std::string_view& hostname) noexcept {
|
|||||||
void set_locale(const std::string_view& locale) noexcept {
|
void set_locale(const std::string_view& locale) noexcept {
|
||||||
spdlog::info("Selected locale: {}", locale);
|
spdlog::info("Selected locale: {}", locale);
|
||||||
#ifdef NDEVENV
|
#ifdef NDEVENV
|
||||||
|
auto* config_instance = Config::instance();
|
||||||
|
auto& config_data = config_instance->data();
|
||||||
const auto& mountpoint = std::get<std::string>(config_data["MOUNTPOINT"]);
|
const auto& mountpoint = std::get<std::string>(config_data["MOUNTPOINT"]);
|
||||||
const auto& locale_config_path = fmt::format(FMT_COMPILE("{}/etc/locale.conf"), mountpoint);
|
const auto& locale_config_path = fmt::format(FMT_COMPILE("{}/etc/locale.conf"), mountpoint);
|
||||||
const auto& locale_gen_path = fmt::format(FMT_COMPILE("{}/etc/locale.gen"), mountpoint);
|
const auto& locale_gen_path = fmt::format(FMT_COMPILE("{}/etc/locale.gen"), mountpoint);
|
||||||
|
Loading…
Reference in New Issue
Block a user