Skip to content

Commit 090cec3

Browse files
swissspidyCopilot
andauthored
Update templates/install-wp-tests.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2495daf commit 090cec3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

templates/install-wp-tests.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ check_for_updates() {
7171
echo -e "${YELLOW}Warning: A newer version of this script is available at $remote_url${RESET}"
7272
fi
7373
}
74-
check_for_updates
74+
# Allow disabling the update check by setting WP_INSTALL_TESTS_SKIP_UPDATE_CHECK=true in the environment.
75+
if [ "${WP_INSTALL_TESTS_SKIP_UPDATE_CHECK:-false}" != "true" ]; then
76+
check_for_updates
77+
fi
7578

7679
if [[ $WP_VERSION =~ ^[0-9]+\.[0-9]+\-(beta|RC)[0-9]+$ ]]; then
7780
WP_BRANCH=${WP_VERSION%\-*}

0 commit comments

Comments
 (0)