Skip to content

Commit 8d111d4

Browse files
committed
Attempt to fix if statement in .travis.yml
1 parent f1cf2bb commit 8d111d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ before_script:
4040
- export WP_DEVELOP_DIR=/tmp/wordpress
4141
- mkdir -p $WP_DEVELOP_DIR
4242
- git clone --depth=1 git://develop.git.wordpress.org/ $WP_DEVELOP_DIR/
43-
- if [ "$WP_VERSION" == "stable" ]; then git fetch --tags; git checkout $(git tag | sort -n | tail -1); else git checkout $WP_VERSION; fi
43+
- sh -c "if [ '$WP_VERSION' = 'stable' ]; then git fetch --tags; git checkout $(git tag | sort -n | tail -1); else git checkout $WP_VERSION; fi"
4444

4545
# Set up plugin information.
4646
- plugin_slug=$(basename $(pwd))

0 commit comments

Comments
 (0)