From 36c46920ec35a69ced6562a9897bf6c73314de45 Mon Sep 17 00:00:00 2001 From: Jordan ERNST Date: Sun, 24 Apr 2022 03:08:34 +0200 Subject: [PATCH] Make files executable --- README.md | 2 +- pendora-box.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 63cb498..a2277f9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This too has several functions: ## To-Do -* `chmod +x` :) +* Prettier code * Only update once per day, except if `-u` `--update` * Adding more services to listen to ? diff --git a/pendora-box.py b/pendora-box.py index 34c6e72..676c3b0 100644 --- a/pendora-box.py +++ b/pendora-box.py @@ -181,6 +181,14 @@ def update(config): githubreleasesync(reponame, repoinfo, credz) ncatsync(config['ncat']) + make_executable() + + +def make_executable(): + path = pathlib.Path('files') + for fpath in path.glob("*"): + if fpath.name != '.gitkeep': + fpath.chmod(0o777) def print_menu(menu_options):