Fixed a syntax error finding a file in a non-existent subdirectory.
This commit is contained in:
parent
2a617b1824
commit
608eeb6071
|
@ -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."""
|
||||
|
||||
|
|
Loading…
Reference in New Issue