fix: ensure script executability on every pull
Validate and Test / validate-patches (push) Failing after 13s

git checkout/clone can lose +x bits. Move chmod to always
run in post-merge hook, not just when scripts/ changes.
This commit is contained in:
2026-06-24 14:54:28 -07:00
parent 340ea3ec0a
commit b4d19f680a
+3
View File
@@ -9,6 +9,9 @@ if [ -z "$CHANGED" ]; then
exit 0
fi
# Always ensure scripts are executable (git may lose +x on clone/checkout)
sudo chmod +x "$REPO/scripts/"*.py "$REPO/scripts/"*.sh 2>/dev/null || true
SYSTEMD_CHANGED=$(echo "$CHANGED" | grep -c "^system/" || true)
SCRIPT_CHANGED=$(echo "$CHANGED" | grep -c "^scripts/" || true)
SKETCH_CHANGED=$(echo "$CHANGED" | grep -c "^sketch/" || true)