#!/usr/bin/env bash

#
# This script copies the latest version of the install-wp-tests.sh file from it's
# remote source into the "bin" directory and makes it executable
#
# This ensurse that we can easily update our included version of the script when
# changes are made in to the source file.
#

echo "Copying the latest version of \"install-wp-tests.sh\" to \"bin/install-wp-tests\""
curl "https://raw.githubusercontent.com/wp-cli/scaffold-command/master/templates/install-wp-tests.sh" -o bin/install-wp-tests
chmod +x bin/install-wp-tests
