Skip to content

Commit d146e38

Browse files
committed
brace expansion doesn't happen in [[ ]]
1 parent a9f7e21 commit d146e38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/validate-plugin-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ main() {
5353
fi
5454

5555
# Update README.md if it exists
56-
if [[ -f "${PLUGIN_PATH}"/README.{md,MD} ]]; then
56+
if [[ -f "${PLUGIN_PATH}/README.md" || -f "${PLUGIN_PATH}/README.MD" ]]; then
5757
if [[ "$OSTYPE" == "darwin"* ]]; then
5858
sed -i '' -E "s/(Tested up to: ).*/\1$CURRENT_WP_VERSION/" "${PLUGIN_PATH}"/README.{md,MD}
5959
else

0 commit comments

Comments
 (0)