Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Fix regex for branch check
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Oct 23, 2018
1 parent 60dfe89 commit 291a1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ function install_wp {
elif [ "$WP_VERSION" == 'latest' ]; then
local TAG=$( svn ls https://develop.svn.wordpress.org/tags | tail -n 1 | sed 's:/$::' )
local SVN_URL="https://develop.svn.wordpress.org/tags/$TAG/"
elif [[ "$WP_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]]; then
elif [[ "$WP_VERSION" =~ ^[0-9]+\.[0-9]+$ ]]; then
local SVN_URL="https://develop.svn.wordpress.org/branches/$WP_VERSION/"
else
local SVN_URL="https://develop.svn.wordpress.org/tags/$WP_VERSION/"
Expand Down

0 comments on commit 291a1c8

Please sign in to comment.