auto deploy from workflow
This commit is contained in:
parent
6ad4bd0080
commit
66c43635fb
1 changed files with 6 additions and 5 deletions
11
index.html
11
index.html
|
@ -36,6 +36,11 @@ def run(command: str) -> list[str]:
|
|||
def command_exists(command: str) -> bool:
|
||||
return len(run(f"command -v {command}")) == 1
|
||||
|
||||
def cleanup() -> None:
|
||||
"""Remove temporary files downloaded or created by this script"""
|
||||
|
||||
if exists(tmp_dir):
|
||||
rmtree(tmp_dir)
|
||||
|
||||
#
|
||||
# Check functions
|
||||
|
@ -157,11 +162,7 @@ def clone_repository():
|
|||
def main():
|
||||
minimal_check()
|
||||
bootstrap()
|
||||
|
||||
# Cleanup
|
||||
# Remove temporary files downloaded by this script
|
||||
if exists(tmp_dir):
|
||||
rmtree(tmp_dir)
|
||||
cleanup()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue