From d2f58362c9035be57670784584a666eea8c09e60 Mon Sep 17 00:00:00 2001 From: Fabian Bornschein <18744080+fabiscafe@users.noreply.github.com> Date: Mon, 1 Aug 2022 09:42:58 +0200 Subject: Remove the hash/number sign at the line-start (#1345) Currently the helper remove the first character of each line, this can lead to cases, where important characters are removed. For example if the locale is already set up. (hash is already removed) in that case the helper would remove the first character of the locale and lead to a broken attempt to set the locale later on. This change should avoid that and only remove the hash. Co-authored-by: Fabian Bornschein <2440175-fabiscafe@users.noreply.gitlab.com> --- archinstall/lib/locale_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archinstall/lib/locale_helpers.py b/archinstall/lib/locale_helpers.py index b48c3bc4..5580fa91 100644 --- a/archinstall/lib/locale_helpers.py +++ b/archinstall/lib/locale_helpers.py @@ -20,7 +20,7 @@ def list_locales() -> List[str]: entries.reverse() for entry in entries: - text = entry[1:].strip() + text = entry.replace('#', '').strip() if text == '': break locales.append(text) -- cgit v1.2.3-70-g09d2