mirror of
https://github.com/CMiksche/gitea-auto-update
synced 2026-10-24 21:51:14 +02: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:
1 parent
3828e07d90
commit
ef91988312
1 file changed
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user