Skip to content

Commit

Permalink
Rename variables for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Jan 17, 2025
1 parent 750c069 commit cbf6021
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-plugin-archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ jobs:
run: |
hasAssetConfig(){
test -f assets-compiler.json
local EXIT=$?
if [ $EXIT -eq 0 ]; then
echo "0"
local ASSET_CONFIG_EXISTS=$?
if [ $ASSET_CONFIG_EXISTS -eq 0 ]; then
echo "0" # File exists
exit 0
fi
# If 'assets-compiler.json' does not exist, check 'composer.json'
jq '.extra | has("composer-asset-compiler")' --exit-status < composer.json >/dev/null 2>&1
local EXIT=$?
echo "$EXIT"
local COMPOSER_CONFIG_EXISTS=$?
echo "$COMPOSER_CONFIG_EXISTS"
}
hasTranslateConfig(){
jq '.extra | has("wp-translation-downloader")' --exit-status < composer.json >/dev/null 2>&1
Expand Down

0 comments on commit cbf6021

Please sign in to comment.