Skip to content

Commit

Permalink
Fix warnings introduced in shellcheck v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift committed Jan 16, 2019
1 parent 07a53dc commit 0b7196e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions test/lint/lint-format-strings.sh
Expand Up @@ -11,20 +11,20 @@
export LC_ALL=C

FUNCTION_NAMES_AND_NUMBER_OF_LEADING_ARGUMENTS=(
FatalError,0
fprintf,1
LogConnectFailure,1
LogPrint,1
LogPrintf,0
printf,0
snprintf,2
sprintf,1
strprintf,0
vfprintf,1
vprintf,1
vsnprintf,1
vsprintf,1
WalletLogPrintf,0
"FatalError,0"
"fprintf,1"
"LogConnectFailure,1"
"LogPrint,1"
"LogPrintf,0"
"printf,0"
"snprintf,2"
"sprintf,1"
"strprintf,0"
"vfprintf,1"
"vprintf,1"
"vsnprintf,1"
"vsprintf,1"
"WalletLogPrintf,0"
)

EXIT_CODE=0
Expand Down
2 changes: 1 addition & 1 deletion test/lint/lint-whitespace.sh
Expand Up @@ -23,7 +23,7 @@ while getopts "?" opt; do
done

if [ -z "${TRAVIS_COMMIT_RANGE}" ]; then
if [ "$1" ]; then
if [ -n "$1" ]; then
TRAVIS_COMMIT_RANGE="HEAD~$1...HEAD"
else
TRAVIS_COMMIT_RANGE="HEAD"
Expand Down

0 comments on commit 0b7196e

Please sign in to comment.