Fixed small issues with how Installation.chown() was called.
This commit is contained in:
parent
f0111c179e
commit
a78f7d193b
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue