Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/installer.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-08-12 18:11:27 +0200
committerAnton Hvornum <anton@hvornum.se>2022-08-12 18:11:27 +0200
commit7b06da280dd90421b233f1403b7bfe344bc11037 (patch)
tree96c043de941243979953cbcdf22f967b703748dc /archinstall/lib/installer.py
parenta78f7d193b4681ee5a4532982387844a749353d3 (diff)
Fix flake8 issue that slinked in.
Diffstat (limited to 'archinstall/lib/installer.py')
-rw-r--r--archinstall/lib/installer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 5b6177bb..05a74e14 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -1131,7 +1131,8 @@ class Installer:
return SysCommand(f"/usr/bin/arch-chroot {self.target} sh -c \"chsh -s {shell} {user}\"").exit_code == 0
def chown(self, owner :str, path :str, options :List[str] = []) -> bool:
- return SysCommand(f"/usr/bin/arch-chroot {self.target} sh -c 'chown {' '.join(options)} {owner} {path.repalce('\'', '\\\'')}'").exit_code == 0
+ cleaned_path = path.repalce('\'', '\\\'')
+ return SysCommand(f"/usr/bin/arch-chroot {self.target} sh -c 'chown {' '.join(options)} {owner} {cleaned_path}'").exit_code == 0
def create_file(self, filename :str, owner :Optional[str] = None) -> InstallationFile:
return InstallationFile(self, filename, owner)