fix: ensure script executability on every pull
Validate and Test / validate-patches (push) Failing after 13s
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user