8000 Fix shellcheck in test · python-mode/python-mode@4ad80be · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ad80be

Browse files
committed
Fix shellcheck in test
1 parent 25b30ce commit 4ad80be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
set -e
55
which vim 1>/dev/null 2>/dev/null
66

7-
cd $(dirname $0)
7+
cd "$(dirname "$0")"
88

99
# Source common variables.
1010
source ./test_helpers_bash/test_variables.sh
@@ -49,7 +49,7 @@ RETURN_CODES=$(cat $VIM_OUTPUT_FILE | grep -i "Return code")
4949
echo -e "${RETURN_CODES}"
5050

5151
# Exit the script with error if there are any return codes different from 0.
52-
if echo $RETURN_CODES | grep -E "Return code: [1-9]" 1>/dev/null 2>/dev/null
52+
if echo "${RETURN_CODES}" | grep -E "Return code: [1-9]" 1>/dev/null 2>/dev/null
5353
then
5454
exit 1
5555
else

0 commit comments

Comments
 (0)
0