Skip to content

Commit b0aaa9d

Browse files
committed
Fix test
1 parent 2104b56 commit b0aaa9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/spell_check/check_spelling.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ while getopts ":rdl:" opt; do
5656
;;
5757
esac
5858
done
59-
shift $(expr $OPTIND - 1)
59+
shift $(($OPTIND - 1))
6060

6161
if [ $# -ne 0 ]; then
6262
EXCLUDE=$(${GP}sed -e 's/\s*#.*$//' -e '/^\s*$/d' $AGIGNORE | tr '\n' '|' | ${GP}sed -e 's/|$//')
63-
INPUTFILES=$(echo $@ | tr -s '[[:blank:]]' '\n' | ${GP}egrep -iv "$EXCLUDE" | tr '\n' ' ' )
63+
INPUTFILES=$(echo "$@" | tr -s '[[:blank:]]' '\n' | ${GP}egrep -iv "$EXCLUDE" | tr '\n' ' ' )
6464
if [[ -z $INPUTFILES ]]; then
6565
exit 0
6666
fi
@@ -84,7 +84,7 @@ declare -A GLOBREP_IGNORE=()
8484

8585
ERRORFOUND=NO
8686

87-
for I in $(seq -f '%02g' 0 $(($SPLIT-1)) ) ; do
87+
for I in $(seq -f '%02g' 0 $((SPLIT-1)) ) ; do
8888
( [[ "$INTERACTIVE" =~ YES ]] || [[ "$TRAVIS" =~ true ]] ) && printf "Progress: %d/%d\r" $(( I + 1 )) $SPLIT
8989
SPELLFILE=spelling$I~
9090
${GP}sed -i '/^#/d' $SPELLFILE

tests/code_layout/test_shellcheck.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
DIR=$(git rev-parse --show-toplevel)
66

77
pushd ${DIR} > /dev/null || exit
8-
result=$(shellcheck -e SC2016,SC2015,SC2086,SC2002,SC1117,SC2154,SC2076,SC2046,SC1090,SC2038,SC2031,SC2030,SC2162,SC2044,SC2119,SC1001,SC2120,SC2059,SC2128,SC2005,SC2013,SC2027,SC2090,SC2089,SC2124,SC2001,SC2010,SC1072,SC1073,SC1009,SC2166,SC2045,SC2028,SC1091,SC1083 $(find . -name '*.sh'))
8+
result=$(shellcheck -e SC2016,SC2015,SC2086,SC2002,SC1117,SC2154,SC2076,SC2046,SC1090,SC2038,SC2031,SC2030,SC2162,SC2044,SC2119,SC1001,SC2120,SC2059,SC2128,SC2005,SC2013,SC2027,SC2090,SC2089,SC2124,SC2001,SC2010,SC1072,SC1073,SC1009,SC2166,SC2045,SC2028,SC1091,SC1083,SC2021 $(find . -name '*.sh'))
99
popd > /dev/null || exit
1010

1111
if [[ $result ]]; then

0 commit comments

Comments
 (0)