mirror of
https://github.com/opencultureconsulting/openrefine-client.git
synced 2025-02-16 00:00:07 +01:00
fix shellcheck issues
This commit is contained in:
parent
69209f04df
commit
ddc8d31380
6
tests.sh
6
tests.sh
@ -62,7 +62,7 @@ fi
|
||||
# ================================== SETUP =================================== #
|
||||
|
||||
dir="$(readlink -f "tests/tmp")"
|
||||
mkdir -p ${dir}
|
||||
mkdir -p "${dir}"
|
||||
rm -f tests.log
|
||||
|
||||
echo "start OpenRefine server..."
|
||||
@ -94,7 +94,7 @@ for i in "${!tests[@]}"; do
|
||||
printf "%s\t%s\n" "${results[$i]}" "${tests[$i]}"
|
||||
done
|
||||
echo
|
||||
if [[ " ${results[@]} " =~ [1-9] ]]; then
|
||||
if [[ " ${results[*]} " =~ [1-9] ]]; then
|
||||
echo "failed tests! check tests.log for debugging"; echo
|
||||
else
|
||||
echo "all tests passed!"; echo
|
||||
@ -104,4 +104,4 @@ fi
|
||||
|
||||
echo "cleanup..."
|
||||
{ kill -9 "${pid_server}" && wait "${pid_server}"; } 2>/dev/null
|
||||
rm -rf ${dir}
|
||||
rm -rf "${dir}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user