fix: ci — remove escaped $ in PIPESTATUS check (deploy.yml)

'test ${PIPESTATUS[0]} -eq 0' sends a literal backslash to bash, which
escapes the dollar sign and prevents variable expansion — test receives the
string '${PIPESTATUS[0]}' instead of an integer, causing exit code 2.

Fix: remove the backslash so bash expands PIPESTATUS correctly.
This commit is contained in:
peptiderepo
2026-04-26 05:02:23 +00:00
parent 27d9cc5831
commit 0cb4247b1a

View File

@@ -18,7 +18,7 @@ jobs:
- name: PHP Lint Check
run: |
find . -name "*.php" -not -path "./vendor/*" -not -path "./node_modules/*" -exec php -l {} \; | (grep -v "No syntax errors" || true) | head -20
test \${PIPESTATUS[0]} -eq 0
test ${PIPESTATUS[0]} -eq 0
- name: Install PHPCS with WordPress standards
run: |
composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true