From f41b76633b61ec39f60dcc7665d9be2032d9c02b Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Thu, 8 May 2025 14:50:27 +0200 Subject: [PATCH] make dir if needed --- install.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.py b/install.py index c45e2d0..0571cb2 100755 --- a/install.py +++ b/install.py @@ -19,7 +19,7 @@ import tempfile from pathlib import Path from subprocess import Popen, PIPE from ipaddress import IPv4Interface -from os.path import getmtime +from os.path import getmtime, exists from gitea import change_to_gitea @@ -468,6 +468,7 @@ class Show(Walker): class Do(Walker): def newer(self, files): + unix_cmd('mkdir', '-p', str(self.sysypath)) unix_cmd('cp', *(str(self.dirpath / f) for f in files), str(self.syspath), sudo=not self.syspath.is_relative_to(Path.home()))