Correzione append percorsi.

This commit is contained in:
Emiliano Vavassori 2023-01-07 01:37:17 +01:00
parent c015aeea99
commit 03620cf013
1 changed files with 5 additions and 3 deletions

View File

@ -433,10 +433,12 @@ class Build(loaih.RemoteBuild):
if self.remoterepo: if self.remoterepo:
# Remote first. # Remote first.
# Build destination directory # Build destination directory
if len(self.relative_path) > 0: if len(self.relative_path) == 0:
remotepath = str.join('/', self.relative_path.insert(0, self.remote_path))
else:
remotepath = str.join('/', [ self.remote_path, '' ]) remotepath = str.join('/', [ self.remote_path, '' ])
elif len(self.relative_path) == 1:
remotepath = str.join('/', [ self.remote_path, self.relative_path[0], '' ])
else:
remotepath = str.join('/', self.relative_path.insert(0, self.remote_path))
try: try:
subprocess.run( subprocess.run(
r"rsync -rlIvz --munge-links *.AppImage* " + r"rsync -rlIvz --munge-links *.AppImage* " +