8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b30ce commit 4ad80beCopy full SHA for 4ad80be
tests/test.sh
@@ -4,7 +4,7 @@
4
set -e
5
which vim 1>/dev/null 2>/dev/null
6
7
-cd $(dirname $0)
+cd "$(dirname "$0")"
8
9
# Source common variables.
10
source ./test_helpers_bash/test_variables.sh
@@ -49,7 +49,7 @@ RETURN_CODES=$(cat $VIM_OUTPUT_FILE | grep -i "Return code")
49
echo -e "${RETURN_CODES}"
50
51
# 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
+if echo "${RETURN_CODES}" | grep -E "Return code: [1-9]" 1>/dev/null 2>/dev/null
53
then
54
exit 1
55
else
0 commit comments