From ddc8d31380f929c34839d630463aaade1d6e75c8 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Mon, 3 Aug 2020 12:15:24 +0200 Subject: [PATCH] fix shellcheck issues --- tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests.sh b/tests.sh index e065e55..cd7047f 100755 --- a/tests.sh +++ b/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}"