File tree Expand file tree Collapse file tree 2 files changed +19
-19
lines changed
Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ WP_TESTS_DIR=${WP_TESTS_DIR-$TMPDIR/wordpress-tests-lib}
2020WP_CORE_DIR=${WP_CORE_DIR-$TMPDIR / wordpress/ }
2121
2222download () {
23- if [ ` which curl` ]; then
24- curl -s " $1 " > " $2 " ;
25- elif [ ` which wget` ]; then
26- wget -nv -O " $2 " " $1 "
27- fi
23+ if [ ` which curl` ]; then
24+ curl -s " $1 " > " $2 " ;
25+ elif [ ` which wget` ]; then
26+ wget -nv -O " $2 " " $1 "
27+ fi
2828}
2929
3030if [[ $WP_VERSION =~ ^[0-9]+\. [0-9]+\- (beta| RC)[0-9]+$ ]]; then
@@ -75,7 +75,7 @@ install_wp() {
7575 rm -rf $TMPDIR /wordpress-nightly;
7676 fi
7777 mkdir -p $TMPDIR /wordpress-nightly
78- download https://wordpress.org/nightly-builds/wordpress-latest.zip $TMPDIR /wordpress-nightly/wordpress-nightly.zip
78+ download https://wordpress.org/nightly-builds/wordpress-latest.zip $TMPDIR /wordpress-nightly/wordpress-nightly.zip
7979 unzip -q $TMPDIR /wordpress-nightly/wordpress-nightly.zip -d $TMPDIR /wordpress-nightly/
8080 mv $TMPDIR /wordpress-nightly/wordpress/* $WP_CORE_DIR
8181 else
@@ -100,7 +100,7 @@ install_wp() {
100100 else
101101 local ARCHIVE_NAME=" wordpress-$WP_VERSION "
102102 fi
103- download https://wordpress.org/${ARCHIVE_NAME} .tar.gz $TMPDIR /wordpress.tar.gz
103+ download https://wordpress.org/${ARCHIVE_NAME} .tar.gz $TMPDIR /wordpress.tar.gz
104104 tar --strip-components=1 -zxmf $TMPDIR /wordpress.tar.gz -C $WP_CORE_DIR
105105 fi
106106
Original file line number Diff line number Diff line change 1111export LC_ALL=C
1212
1313if [ -z " $1 " ]; then
14- echo " Error: You must specify a version number."
15- exit 1
14+ echo " Error: You must specify a version number."
15+ exit 1
1616fi
1717
1818VERSION=$1
@@ -21,16 +21,16 @@ git checkout -b update/wp-parsely-version-to-$VERSION
2121
2222# Function to perform in-place sed substitution.
2323sed_inplace () {
24- local expression=" $1 "
25- local file=" $2 "
26-
27- if [[ " $( uname) " == " Darwin" ]]; then
28- # MacOS/BSD sed.
29- sed -i ' ' -e " $expression " " $file "
30- else
31- # GNU sed (Linux).
32- sed -i -e " $expression " " $file "
33- fi
24+ local expression=" $1 "
25+ local file=" $2 "
26+
27+ if [[ " $( uname) " == " Darwin" ]]; then
28+ # MacOS/BSD sed.
29+ sed -i ' ' -e " $expression " " $file "
30+ else
31+ # GNU sed (Linux).
32+ sed -i -e " $expression " " $file "
33+ fi
3434}
3535
3636# Update version in files.
You can’t perform that action at this time.
0 commit comments