From 30369aff3ccc0701526a791d64c1bd49e6ee6460 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Thu, 8 May 2025 14:52:47 +0200 Subject: [PATCH] mkdir with proper owner - using sudo only when not in user account + fix typo --- install.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.py b/install.py index 0571cb2..c137613 100755 --- a/install.py +++ b/install.py @@ -468,9 +468,10 @@ class Show(Walker): class Do(Walker): def newer(self, files): - unix_cmd('mkdir', '-p', str(self.sysypath)) + usesudo = not self.syspath.is_relative_to(Path.home()) + unix_cmd('mkdir', '-p', str(self.syspath), sudo=usesudo) unix_cmd('cp', *(str(self.dirpath / f) for f in files), str(self.syspath), - sudo=not self.syspath.is_relative_to(Path.home())) + sudo=usesudo) older = newer