From 608eeb6071ededb3e9e39f23f1366fb2e874de45 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Mon, 1 Jan 2024 13:33:19 +0100 Subject: [PATCH] Fixed a syntax error finding a file in a non-existent subdirectory. --- loaih/build.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/loaih/build.py b/loaih/build.py index 8c6dba0..c9a0697 100644 --- a/loaih/build.py +++ b/loaih/build.py @@ -157,6 +157,8 @@ class Build(): else: # Repo is local + + command = f"find {self.full_path} -name {self.appimagefilename}" res = subprocess.run(shlex.split(command), capture_output=True, @@ -395,6 +397,9 @@ class Build(): fullpath_arr.extend(self.relative_path) self.full_path = re.sub(r"/+", '/', str.join('/', fullpath_arr)) + if not os.path.exists(self.full_path): + os.makedirs(self.full_path, exist_ok = True) + def __create_checksum__(self, file): """Internal function to create checksum file."""