Fixed a syntax error finding a file in a non-existent subdirectory.

This commit is contained in:
emiliano.vavassori 2024-01-01 13:33:19 +01:00
parent 2a617b1824
commit 608eeb6071
1 changed files with 5 additions and 0 deletions

View File

@ -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."""