Skip to content

Commit 5f26c1b

Browse files
authored
Merge pull request #3380 from Parsely/update/use-tabs-in-shell-scripts
2 parents c91bede + 0a746fa commit 5f26c1b

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

bin/install-wp-tests.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ WP_TESTS_DIR=${WP_TESTS_DIR-$TMPDIR/wordpress-tests-lib}
2020
WP_CORE_DIR=${WP_CORE_DIR-$TMPDIR/wordpress/}
2121

2222
download() {
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

3030
if [[ $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

bin/update-version.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ set -e
1111
export LC_ALL=C
1212

1313
if [ -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
1616
fi
1717

1818
VERSION=$1
@@ -21,16 +21,16 @@ git checkout -b update/wp-parsely-version-to-$VERSION
2121

2222
# Function to perform in-place sed substitution.
2323
sed_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.

0 commit comments

Comments
 (0)