diff --git a/loaih/__init__.py b/loaih/__init__.py index 0792e7d..795b6df 100644 --- a/loaih/__init__.py +++ b/loaih/__init__.py @@ -43,10 +43,7 @@ class Build(object): def check(self, storage_path): """Checking if the requested AppImage has been already built.""" - self.storage_path = storage_path - - if self.portable: - self.storage_path += "/portable" + self.storage_path = storage_path + ('/portable' if self.portable else '') for arch in self.arch: res = subprocess.check_output("find {path} -name '{appimage}'".format( @@ -187,7 +184,7 @@ class Build(object): # Building app if self.updatable: zsync = self.appimagefilename[arch] + '.zsync' - subprocess.run("VERSION={version} ./appimagetool -u 'zsync|{zsync}' -v ./{appname}.AppDir/".format(version = appversion, zsync = zsync, appname = self.__appname__), shell=True) + subprocess.run("VERSION={version} ./appimagetool -u 'zsync|{zsync}' -v ./{appname}.AppDir/".format(version = appversion, zsync = self.appimagefilename[arch] + '.zsync', appname = self.appname), shell=True) else: subprocess.run("VERSION={version} ./appimagetool -v ./{appname}.AppDir/".format(version = appversion, appname = self.appname), shell=True)