Skip to content

Commit 0d98561

Browse files
authored
Merge pull request #11 from wp-cli/fix-missing-var-in-behat-bin
Add default to WP_VERSION to avoid empty var bug
2 parents fcc1f29 + a1ed2f8 commit 0d98561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/run-behat-tests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ ! -d "features" ]; then
66
fi
77

88
# Turn WP_VERSION into an actual number to make sure our tags work correctly.
9-
if [ $WP_VERSION = "latest" ]; then
9+
if [ "${WP_VERSION-latest}" = "latest" ]; then
1010
export WP_VERSION=$(curl -s https://api.wordpress.org/core/version-check/1.7/ | jq -r ".offers[0].current")
1111
fi
1212

0 commit comments

Comments
 (0)