Skip to content

Commit 240a89e

Browse files
committed
fix tabs vs spaces
1 parent 6b4fc92 commit 240a89e

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

bin/run-behat-tests

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33
# Run the Behat tests only if a Behat config file is found.
44
if [ ! -f "behat.yml" ]; then
55
echo 'Did not detect "behat.yml" file, skipping Behat tests.'
6-
exit 0;
6+
exit 0;
77
fi
88

99
if ! command -v jq &> /dev/null
1010
then
11-
echo 'The required "jq" command was not found, please install it to run the Behat tests.'
12-
echo "See https://stedolan.github.io/jq/download/ for installation instructions."
13-
exit 1;
11+
echo 'The required "jq" command was not found, please install it to run the Behat tests.'
12+
echo "See https://stedolan.github.io/jq/download/ for installation instructions."
13+
exit 1;
1414
fi
1515

1616
if [[ "$@" == *"--help"* ]]; then
17-
vendor/bin/behat "$@"
18-
ret=$?
19-
exit $ret
17+
vendor/bin/behat "$@"
18+
ret=$?
19+
exit $ret
2020
fi
2121

2222
# POSIX compliant function to check if a string is numeric.
2323
is_numeric() {
24-
case $1 in
25-
''|*[!0-9]*) return 1;; # returns 1 if not numeric
26-
*) return 0;; # returns 0 if numeric
27-
esac
24+
case $1 in
25+
''|*[!0-9]*) return 1;; # returns 1 if not numeric
26+
*) return 0;; # returns 0 if numeric
27+
esac
2828
}
2929

3030
# If DB type is already set to SQLite, there's nothing to do.
@@ -100,11 +100,11 @@ SOURCE="${BASH_SOURCE[0]}"
100100

101101
# Resolve $SOURCE until the file is no longer a symlink.
102102
while [ -h "$SOURCE" ]; do
103-
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
104-
SOURCE="$(readlink "$SOURCE")"
105-
# If $SOURCE was a relative symlink, we need to resolve it relative to the
106-
# path where the symlink file was located.
107-
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
103+
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
104+
SOURCE="$(readlink "$SOURCE")"
105+
# If $SOURCE was a relative symlink, we need to resolve it relative to the
106+
# path where the symlink file was located.
107+
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
108108
done
109109

110110
# Fetch the root folder of the WP-CLI tests package.

0 commit comments

Comments
 (0)