From 0cb4247b1a18eeea0d5884e210e93e9d294d012c Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Sun, 26 Apr 2026 05:02:23 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20ci=20=E2=80=94=20remove=20escaped=20$=20?= =?UTF-8?q?in=20PIPESTATUS=20check=20(deploy.yml)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit '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. --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 20c63ad..1b4a46b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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