diff --git a/.githooks/post-merge b/.githooks/post-merge index 88bac9f..0e6ad96 100755 --- a/.githooks/post-merge +++ b/.githooks/post-merge @@ -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)