Skip to content

Commit 6c3be5d

Browse files
committed
Fixed issue with filename replacing variable.
1 parent 466b892 commit 6c3be5d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

archinstall/lib/installer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def set_hostname(self, hostname=None):
5353
fh.write(self.hostname + '\n')
5454

5555
def set_locale(self, locale, encoding='UTF-8'):
56-
with open(f'{self.mountpoint}/etc/locale.gen', 'a') as locale:
57-
locale.write(f'{locale} {encoding}\n')
58-
with open(f'{self.mountpoint}/etc/locale.conf', 'w') as locale:
59-
locale.write(f'LANG={locale}\n')
56+
with open(f'{self.mountpoint}/etc/locale.gen', 'a') as fh:
57+
fh.write(f'{locale} {encoding}\n')
58+
with open(f'{self.mountpoint}/etc/locale.conf', 'w') as fh:
59+
fh.write(f'LANG={locale}\n')
6060
sys_command(f'/usr/bin/arch-chroot {self.mountpoint} locale-gen')
6161

6262
def minimal_installation(self):

0 commit comments

Comments
 (0)