Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-08-12 16:58:41 +0200
committerAnton Hvornum <anton@hvornum.se>2022-08-12 16:58:41 +0200
commita78f7d193b4681ee5a4532982387844a749353d3 (patch)
tree17a8a8c98a3df1c70079b395fdb0fc1f2944bb51 /archinstall
parentf0111c179e35d0c905f67d46d0cf8b386ed768ac (diff)
Fixed small issues with how Installation.chown() was called.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/installer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 8b87b072..5b6177bb 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -1131,7 +1131,7 @@ 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}").exit_code == 0
+ return SysCommand(f"/usr/bin/arch-chroot {self.target} sh -c 'chown {' '.join(options)} {owner} {path.repalce('\'', '\\\'')}'").exit_code == 0
def create_file(self, filename :str, owner :Optional[str] = None) -> InstallationFile:
return InstallationFile(self, filename, owner)