From f748a6fbe632d043a6e1c45f0e353cf87cd53b9b Mon Sep 17 00:00:00 2001 From: Joe Block Date: Sat, 5 Oct 2024 14:02:12 -0600 Subject: [PATCH] Deal with Synology Drive fuckery The idiots at Synology make their Drive app add execute bits to every fucking file, whether or not it needs it. Clean up that garbage. Signed-off-by: Joe Block --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c1a45cd..804c6ab 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,15 @@ help: # If this pukes trying to import paho, try running 'poetry install' MODULE_VERSION=$(shell grep '^version' pyproject.toml | cut -d= -f2 | sed s/\"//g | sed s/\ //g) -clean: ## Cleans out stale wheels, generated tar files, .pyc and .pyo files +clean-synology-fuckery: ## Deal with Synology's obsession with adding executable bits everywhere + chmod 600 poetry.lock Docker* LICENSE Makefile *.toml .gitignore .editorconfig .flake8 *.y*ml .*.y*ml .*.json .trivyignore + find . -iname '*.py' -exec chmod 644 '{}' ';' + find . -iname '*.md' -exec chmod 644 '{}' ';' + find . -iname '*.txt' -exec chmod 644 '{}' ';' + find .github -type f -exec chmod 644 '{}' ';' + find tests -type f -exec chmod 644 '{}' ';' + +clean: clean-synology-fuckery ## Cleans out stale wheels, generated tar files, .pyc and .pyo files rm -fv dist/*.tar dist/*.whl find . -iname '*.py[co]' -delete