mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Fix exit code when ripunzip isn't called.
This commit is contained in:
@@ -85,9 +85,11 @@ def rmdir(dir: pathlib.Path):
|
||||
if destdir.exists() and opts.cleanup:
|
||||
rmdir(destdir)
|
||||
|
||||
|
||||
class RetryException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
attempts = 0
|
||||
success = False
|
||||
while attempts < 3 and not success:
|
||||
@@ -114,5 +116,5 @@ while attempts < 3 and not success:
|
||||
print(f"Failed to unzip {zip} to {dest}, retrying installation...")
|
||||
rmdir(destdir)
|
||||
break
|
||||
|
||||
sys.exit(ret.returncode)
|
||||
if not success:
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user