Skip to content

Commit

Permalink
Travis: escape hashes (#) from branch names when downloading the ZIP …
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu authored Mar 19, 2019
1 parent 85b4a7c commit 4b59887
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/install-wp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ install_deps() {
php wp-cli.phar plugin activate woocommerce

if [ "$TRAVIS_PULL_REQUEST_BRANCH" != "" ]; then
BRANCH="$(sed 's/#/%23/' <<<$BRANCH)"
# Install wc-admin, the correct branch, if running from Travis CI.
php wp-cli.phar plugin install https://github.com/$REPO/archive/$BRANCH.zip --activate
fi
Expand Down

0 comments on commit 4b59887

Please sign in to comment.