mirror of
https://github.com/CMiksche/gitea-auto-update
synced 2025-12-10 07:57:23 +01:00
fix: Fix exception when updating via binary.
Attempting to update Gitea using the binary mode results in an exception because `isTool` did not have a `self` parameter. This fixes the issue, allowing binary updates.
This commit is contained in:
@@ -28,7 +28,7 @@ class Download:
|
|||||||
self.downloadGiteaFiles()
|
self.downloadGiteaFiles()
|
||||||
self.checkAndExtract()
|
self.checkAndExtract()
|
||||||
|
|
||||||
def isTool(name):
|
def isTool(self, name):
|
||||||
# Function to check if tool is available
|
# Function to check if tool is available
|
||||||
##Check whether `name` is on PATH and marked as executable.
|
##Check whether `name` is on PATH and marked as executable.
|
||||||
return which(name) is not None
|
return which(name) is not None
|
||||||
@@ -74,4 +74,4 @@ class Download:
|
|||||||
self.extractFile()
|
self.extractFile()
|
||||||
else:
|
else:
|
||||||
logging.error('Download: error: sha256sum failed')
|
logging.error('Download: error: sha256sum failed')
|
||||||
quit()
|
quit()
|
||||||
|
|||||||
Reference in New Issue
Block a user