From ea79adcfde6cba730b52dfbdac14c60c74c95c84 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Tue, 4 Aug 2020 13:58:26 +0200 Subject: [PATCH] fix shellcheck issues --- tests.sh | 2 +- tests/export-ods-utf8.sh | 6 +++--- tests/export-ods.sh | 6 +++--- tests/export-xls-utf8.sh | 6 +++--- tests/export-xls.sh | 6 +++--- tests/export-xlsx-utf8.sh | 6 +++--- tests/export-xlsx.sh | 6 +++--- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/tests.sh b/tests.sh index 231c33c..f3fe664 100755 --- a/tests.sh +++ b/tests.sh @@ -89,7 +89,7 @@ results=() for t in tests/*.sh; do tests+=("${t}") echo "========================= ${t} =========================" &>> tests.log - bash ${t} "${cmd}" "${version}" &>> tests.log + bash "${t}" "${cmd}" "${version}" &>> tests.log results+=(${?}) done echo diff --git a/tests/export-ods-utf8.sh b/tests/export-ods-utf8.sh index 4f720f8..288a236 100644 --- a/tests/export-ods-utf8.sh +++ b/tests/export-ods-utf8.sh @@ -34,9 +34,9 @@ DATA ${cmd} --create "tmp/${t}/${t}.csv" ${cmd} --export "${t}" --output "tmp/${t}/${t}.ods" -(cd tmp/${t} && - ssconvert -S ${t}.ods ${t}.csv && - mv ${t}.csv.1 ${t}.output) +(cd tmp/"${t}" && + ssconvert -S "${t}.ods" "${t}.csv" && + mv "${t}.csv.1" "${t}.output") # =================================== TEST =================================== # diff --git a/tests/export-ods.sh b/tests/export-ods.sh index 07ae030..f637684 100644 --- a/tests/export-ods.sh +++ b/tests/export-ods.sh @@ -38,9 +38,9 @@ DATA ${cmd} --create "tmp/${t}/${t}.csv" ${cmd} --export "${t}" --output "tmp/${t}/${t}.ods" -(cd tmp/${t} && - ssconvert -S ${t}.ods ${t}.csv && - mv ${t}.csv.1 ${t}.output) +(cd tmp/"${t}" && + ssconvert -S "${t}.ods" "${t}.csv" && + mv "${t}.csv.1" "${t}.output") # =================================== TEST =================================== # diff --git a/tests/export-xls-utf8.sh b/tests/export-xls-utf8.sh index 732a32f..40a269e 100644 --- a/tests/export-xls-utf8.sh +++ b/tests/export-xls-utf8.sh @@ -34,9 +34,9 @@ DATA ${cmd} --create "tmp/${t}/${t}.csv" ${cmd} --export "${t}" --output "tmp/${t}/${t}.xls" -(cd tmp/${t} && - ssconvert -S ${t}.xls ${t}.csv && - mv ${t}.csv ${t}.output) +(cd tmp/"${t}" && + ssconvert -S "${t}.xls" "${t}.csv" && + mv "${t}.csv" "${t}.output") # =================================== TEST =================================== # diff --git a/tests/export-xls.sh b/tests/export-xls.sh index 0116b5e..c298c6e 100644 --- a/tests/export-xls.sh +++ b/tests/export-xls.sh @@ -34,9 +34,9 @@ DATA ${cmd} --create "tmp/${t}/${t}.csv" ${cmd} --export "${t}" --output "tmp/${t}/${t}.xls" -(cd tmp/${t} && - ssconvert -S ${t}.xls ${t}.csv && - mv ${t}.csv ${t}.output) +(cd tmp/"${t}" && + ssconvert -S "${t}.xls" "${t}.csv" && + mv "${t}.csv" "${t}.output") # =================================== TEST =================================== # diff --git a/tests/export-xlsx-utf8.sh b/tests/export-xlsx-utf8.sh index 927dec8..9875b7e 100644 --- a/tests/export-xlsx-utf8.sh +++ b/tests/export-xlsx-utf8.sh @@ -34,9 +34,9 @@ DATA ${cmd} --create "tmp/${t}/${t}.csv" ${cmd} --export "${t}" --output "tmp/${t}/${t}.xlsx" -(cd tmp/${t} && - ssconvert -S ${t}.xlsx ${t}.csv && - mv ${t}.csv ${t}.output) +(cd tmp/"${t}" && + ssconvert -S "${t}.xlsx" "${t}.csv" && + mv "${t}.csv" "${t}.output") # =================================== TEST =================================== # diff --git a/tests/export-xlsx.sh b/tests/export-xlsx.sh index a106efc..2d9d397 100644 --- a/tests/export-xlsx.sh +++ b/tests/export-xlsx.sh @@ -34,9 +34,9 @@ DATA ${cmd} --create "tmp/${t}/${t}.csv" ${cmd} --export "${t}" --output "tmp/${t}/${t}.xlsx" -(cd tmp/${t} && - ssconvert -S ${t}.xlsx ${t}.csv && - mv ${t}.csv ${t}.output) +(cd tmp/"${t}" && + ssconvert -S "${t}.xlsx" "${t}.csv" && + mv "${t}.csv" "${t}.output") # =================================== TEST =================================== #