scripts/soltest.sh: Disable the warning about missing quotes around $DEBUGGER

- There are ways to fix the warning properly but they're all less readable than this in my opinion.
This commit is contained in:
Kamil Śliwak 2020-12-11 18:28:19 +01:00
parent 4a7d494d3c
commit cba6e6814b

View File

@ -60,8 +60,12 @@ do
esac
shift
done
if [ "$USE_DEBUGGER" -ne "0" ]; then
DEBUG_PREFIX=${DEBUGGER}
fi
exec ${DEBUG_PREFIX} "${SOLIDITY_BUILD_DIR}/test/soltest" "${BOOST_OPTIONS[@]}" -- --testpath "${REPO_ROOT}/test" "${SOLTEST_OPTIONS[@]}"
SOLTEST_COMMAND=("${SOLIDITY_BUILD_DIR}/test/soltest" "${BOOST_OPTIONS[@]}" -- --testpath "${REPO_ROOT}/test" "${SOLTEST_OPTIONS[@]}")
if [ "$USE_DEBUGGER" -ne "0" ]; then
# shellcheck disable=SC2086
exec ${DEBUGGER} "${SOLTEST_COMMAND[@]}"
else
exec "${SOLTEST_COMMAND[@]}"
fi