aboutsummaryrefslogtreecommitdiff
path: root/test/lint/lint-format-strings.sh
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-08-31 00:51:43 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-08-31 00:51:43 +0200
commitb57d7d92fe00ff44383e3d01ac15721dd75bde37 (patch)
tree4682df8d47b6621f3e85b5e06e2f4dca3ddbba72 /test/lint/lint-format-strings.sh
parent07033a8f91975028e366920b0da3f7e2a6ef9cbd (diff)
macOS fix: Avoid mapfile due to ancient version of bash shipped with macOS
Diffstat (limited to 'test/lint/lint-format-strings.sh')
-rwxr-xr-xtest/lint/lint-format-strings.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lint/lint-format-strings.sh b/test/lint/lint-format-strings.sh
index 17f846d29b..2c443abf6b 100755
--- a/test/lint/lint-format-strings.sh
+++ b/test/lint/lint-format-strings.sh
@@ -33,7 +33,9 @@ if ! python3 -m doctest test/lint/lint-format-strings.py; then
fi
for S in "${FUNCTION_NAMES_AND_NUMBER_OF_LEADING_ARGUMENTS[@]}"; do
IFS="," read -r FUNCTION_NAME SKIP_ARGUMENTS <<< "${S}"
- mapfile -t MATCHING_FILES < <(git grep --full-name -l "${FUNCTION_NAME}" -- "*.c" "*.cpp" "*.h" | sort | grep -vE "^src/(leveldb|secp256k1|tinyformat|univalue)")
+ for MATCHING_FILE in $(git grep --full-name -l "${FUNCTION_NAME}" -- "*.c" "*.cpp" "*.h" | sort | grep -vE "^src/(leveldb|secp256k1|tinyformat|univalue)"); do
+ MATCHING_FILES+=("${MATCHING_FILE}")
+ done
if ! test/lint/lint-format-strings.py --skip-arguments "${SKIP_ARGUMENTS}" "${FUNCTION_NAME}" "${MATCHING_FILES[@]}"; then
EXIT_CODE=1
fi