diff --git a/bin/deploy.sh b/bin/deploy.sh index 5be1897..673a315 100644 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -61,9 +61,9 @@ else fi fi -echo "Run svn add" -svn st | grep '^!' | sed -e 's/\![ ]*/svn del -q /g' | sh echo "Run svn del" +svn st | grep '^!' | sed -e 's/\![ ]*/svn del -q /g' | sh +echo "Run svn add" svn st | grep '^?' | sed -e 's/\?[ ]*/svn add -q /g' | sh # If tag number and credentials are provided, commit to trunk. diff --git a/bin/install-wp-tests.sh b/bin/install-wp-tests.sh index 5baa6cb..b27b7ba 100644 --- a/bin/install-wp-tests.sh +++ b/bin/install-wp-tests.sh @@ -15,11 +15,11 @@ WP_TESTS_DIR=${WP_TESTS_DIR-/tmp/wordpress-tests-lib} WP_CORE_DIR=${WP_CORE_DIR-/tmp/wordpress/} download() { - if [ `which curl` ]; then - curl -s "$1" > "$2"; - elif [ `which wget` ]; then - wget -nv -O "$2" "$1" - fi + if [ `which curl` ]; then + curl -s "$1" > "$2"; + elif [ `which wget` ]; then + wget -nv -O "$2" "$1" + fi } if [[ $WP_VERSION =~ [0-9]+\.[0-9]+(\.[0-9]+)? ]]; then