Skip to content

Commit

Permalink
FIX Add brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed May 16, 2024
1 parent 56dc8f6 commit 11a37e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ MS_GITHUB_TOKEN=abc123 php run.php update --cms-major=5 --branch=next-minor --dr
| --exclude=[modules] | Exclude the specified modules (without account prefix) separated by commas e.g. `silverstripe-mfa,silverstripe-totp` |
| --dry-run | Do not push to github or create pull-requests |
| --account | GitHub account to use for creating pull-requests (default: creative-commoners) |
| --no-delete | Do not delete `_data` and `modules` directories before running |
| --no-delete | Do not delete `_data` and `_modules` directories before running |
| --update-prs | Update existing open PRs instead of creating new PRs |

**Note** that using `--branch=github-default` will only run scripts in the `scripts/default-branch` directory.
Expand Down
4 changes: 2 additions & 2 deletions funcs_scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function module_is_recipe()
error("Could not parse from composer.json - last error was $lastError");
}

return $json->type ?? '' === 'silverstripe-recipe';
return ($json->type ?? '') === 'silverstripe-recipe';
}

/**
Expand Down Expand Up @@ -190,7 +190,7 @@ function is_composer_plugin()
error("Could not parse from composer.json - last error was $lastError");
}

return $json->type ?? '' === 'composer-plugin';
return ($json->type ?? '') === 'composer-plugin';
}

/**
Expand Down

0 comments on commit 11a37e0

Please sign in to comment.