Spelling error on .replace()
This commit is contained in:
parent
7b06da280d
commit
7b4940ef6d
|
|
@ -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:
|
||||
cleaned_path = path.repalce('\'', '\\\'')
|
||||
cleaned_path = path.replace('\'', '\\\'')
|
||||
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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue