fix shellcheck issues
This commit is contained in:
parent
1011c0903d
commit
ea79adcfde
2
tests.sh
2
tests.sh
|
@ -89,7 +89,7 @@ results=()
|
||||||
for t in tests/*.sh; do
|
for t in tests/*.sh; do
|
||||||
tests+=("${t}")
|
tests+=("${t}")
|
||||||
echo "========================= ${t} =========================" &>> tests.log
|
echo "========================= ${t} =========================" &>> tests.log
|
||||||
bash ${t} "${cmd}" "${version}" &>> tests.log
|
bash "${t}" "${cmd}" "${version}" &>> tests.log
|
||||||
results+=(${?})
|
results+=(${?})
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
|
|
|
@ -34,9 +34,9 @@ DATA
|
||||||
|
|
||||||
${cmd} --create "tmp/${t}/${t}.csv"
|
${cmd} --create "tmp/${t}/${t}.csv"
|
||||||
${cmd} --export "${t}" --output "tmp/${t}/${t}.ods"
|
${cmd} --export "${t}" --output "tmp/${t}/${t}.ods"
|
||||||
(cd tmp/${t} &&
|
(cd tmp/"${t}" &&
|
||||||
ssconvert -S ${t}.ods ${t}.csv &&
|
ssconvert -S "${t}.ods" "${t}.csv" &&
|
||||||
mv ${t}.csv.1 ${t}.output)
|
mv "${t}.csv.1" "${t}.output")
|
||||||
|
|
||||||
# =================================== TEST =================================== #
|
# =================================== TEST =================================== #
|
||||||
|
|
||||||
|
|
|
@ -38,9 +38,9 @@ DATA
|
||||||
|
|
||||||
${cmd} --create "tmp/${t}/${t}.csv"
|
${cmd} --create "tmp/${t}/${t}.csv"
|
||||||
${cmd} --export "${t}" --output "tmp/${t}/${t}.ods"
|
${cmd} --export "${t}" --output "tmp/${t}/${t}.ods"
|
||||||
(cd tmp/${t} &&
|
(cd tmp/"${t}" &&
|
||||||
ssconvert -S ${t}.ods ${t}.csv &&
|
ssconvert -S "${t}.ods" "${t}.csv" &&
|
||||||
mv ${t}.csv.1 ${t}.output)
|
mv "${t}.csv.1" "${t}.output")
|
||||||
|
|
||||||
# =================================== TEST =================================== #
|
# =================================== TEST =================================== #
|
||||||
|
|
||||||
|
|
|
@ -34,9 +34,9 @@ DATA
|
||||||
|
|
||||||
${cmd} --create "tmp/${t}/${t}.csv"
|
${cmd} --create "tmp/${t}/${t}.csv"
|
||||||
${cmd} --export "${t}" --output "tmp/${t}/${t}.xls"
|
${cmd} --export "${t}" --output "tmp/${t}/${t}.xls"
|
||||||
(cd tmp/${t} &&
|
(cd tmp/"${t}" &&
|
||||||
ssconvert -S ${t}.xls ${t}.csv &&
|
ssconvert -S "${t}.xls" "${t}.csv" &&
|
||||||
mv ${t}.csv ${t}.output)
|
mv "${t}.csv" "${t}.output")
|
||||||
|
|
||||||
# =================================== TEST =================================== #
|
# =================================== TEST =================================== #
|
||||||
|
|
||||||
|
|
|
@ -34,9 +34,9 @@ DATA
|
||||||
|
|
||||||
${cmd} --create "tmp/${t}/${t}.csv"
|
${cmd} --create "tmp/${t}/${t}.csv"
|
||||||
${cmd} --export "${t}" --output "tmp/${t}/${t}.xls"
|
${cmd} --export "${t}" --output "tmp/${t}/${t}.xls"
|
||||||
(cd tmp/${t} &&
|
(cd tmp/"${t}" &&
|
||||||
ssconvert -S ${t}.xls ${t}.csv &&
|
ssconvert -S "${t}.xls" "${t}.csv" &&
|
||||||
mv ${t}.csv ${t}.output)
|
mv "${t}.csv" "${t}.output")
|
||||||
|
|
||||||
# =================================== TEST =================================== #
|
# =================================== TEST =================================== #
|
||||||
|
|
||||||
|
|
|
@ -34,9 +34,9 @@ DATA
|
||||||
|
|
||||||
${cmd} --create "tmp/${t}/${t}.csv"
|
${cmd} --create "tmp/${t}/${t}.csv"
|
||||||
${cmd} --export "${t}" --output "tmp/${t}/${t}.xlsx"
|
${cmd} --export "${t}" --output "tmp/${t}/${t}.xlsx"
|
||||||
(cd tmp/${t} &&
|
(cd tmp/"${t}" &&
|
||||||
ssconvert -S ${t}.xlsx ${t}.csv &&
|
ssconvert -S "${t}.xlsx" "${t}.csv" &&
|
||||||
mv ${t}.csv ${t}.output)
|
mv "${t}.csv" "${t}.output")
|
||||||
|
|
||||||
# =================================== TEST =================================== #
|
# =================================== TEST =================================== #
|
||||||
|
|
||||||
|
|
|
@ -34,9 +34,9 @@ DATA
|
||||||
|
|
||||||
${cmd} --create "tmp/${t}/${t}.csv"
|
${cmd} --create "tmp/${t}/${t}.csv"
|
||||||
${cmd} --export "${t}" --output "tmp/${t}/${t}.xlsx"
|
${cmd} --export "${t}" --output "tmp/${t}/${t}.xlsx"
|
||||||
(cd tmp/${t} &&
|
(cd tmp/"${t}" &&
|
||||||
ssconvert -S ${t}.xlsx ${t}.csv &&
|
ssconvert -S "${t}.xlsx" "${t}.csv" &&
|
||||||
mv ${t}.csv ${t}.output)
|
mv "${t}.csv" "${t}.output")
|
||||||
|
|
||||||
# =================================== TEST =================================== #
|
# =================================== TEST =================================== #
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue