Skip to content

Commit

Permalink
Add executable permission to stockfish binary after extraction
Browse files Browse the repository at this point in the history
* Use `os.chmod` to mark `bin/stockfish` as executable with permission `0o755`
  • Loading branch information
andreisavu committed Aug 22, 2024
1 parent 4b3a429 commit 6df8d8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/download_stockfish.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def download_stockfish():
with tarfile.open(tar_path, "r") as tar_ref:
tar_ref.extractall("bin")

os.chmod(os.path.join("bin", "stockfish"), 0o755)
os.remove(tar_path)

if __name__ == "__main__":
Expand Down

0 comments on commit 6df8d8b

Please sign in to comment.