Skip to content

Commit 2b5b25a

Browse files
Update templates/install-wp-tests.sh
Co-authored-by: Gary Jones <[email protected]>
1 parent 49792b7 commit 2b5b25a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/install-wp-tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ install_wp() {
104104
mkdir -p $WP_CORE_DIR
105105

106106
if [[ $WP_VERSION == 'nightly' || $WP_VERSION == 'trunk' ]]; then
107-
download https://github.com/WordPress/wordpress-develop/archive/refs/heads/master.tar.gz $WP_CORE_DIR
107+
download https://github.com/WordPress/wordpress-develop/archive/refs/heads/master.tar.gz $TMPDIR/wordpress.tar.gz
108+
tar --strip-components=1 -zxmf $TMPDIR/wordpress.tar.gz -C $WP_CORE_DIR
108109
else
109110
if [ $WP_VERSION == 'latest' ]; then
110111
local ARCHIVE_NAME='latest'

0 commit comments

Comments
 (0)