Commit d0f9192e authored by R. van Elst's avatar R. van Elst
Browse files

Shellcheck fixes

parent 5dbc74af
...@@ -81,12 +81,12 @@ writeOkayChecks() { ...@@ -81,12 +81,12 @@ writeOkayChecks() {
if [[ okCount -gt 0 ]]; then if [[ okCount -gt 0 ]]; then
for filename in "${okFiles[@]}"; do for filename in "${okFiles[@]}"; do
if [[ -r $filename ]]; then if [[ -r $filename ]]; then
value="$(cat $filename)" value="$(cat "$filename")"
filenameWithoutExt=${filename%.*} filenameWithoutExt=${filename%.*}
echo '<a href="#" class="btn btn-success disabled" tabindex="-1" role="button" aria-disabled="true" style="margin-top: 10px; padding: 10px;">' echo '<a href="#" class="btn btn-success disabled" tabindex="-1" role="button" aria-disabled="true" style="margin-top: 10px; padding: 10px;">'
echo "${filenameWithoutExt}" echo "${filenameWithoutExt}"
echo "<font color=LightGray> (" echo "<font color=LightGray> ("
echo ${value} echo "${value}"
echo " ms)</font>" echo " ms)</font>"
echo "</a> &nbsp;" echo "</a> &nbsp;"
fi fi
...@@ -117,7 +117,7 @@ writeFailedChecks() { ...@@ -117,7 +117,7 @@ writeFailedChecks() {
else else
curlError="Status code does not match expected code" curlError="Status code does not match expected code"
fi fi
status="$(cat ${filename})" status="$(cat "${filename}")"
echo "<tr class='table-danger'><td>" echo "<tr class='table-danger'><td>"
echo "${filenameWithoutExt}" echo "${filenameWithoutExt}"
echo "</td><td>" echo "</td><td>"
...@@ -144,7 +144,6 @@ writeFailedChecks() { ...@@ -144,7 +144,6 @@ writeFailedChecks() {
cleanupFailedCheckFiles() { cleanupFailedCheckFiles() {
pushd "${tempfolder}/FAIL" >/dev/null 2>&1 pushd "${tempfolder}/FAIL" >/dev/null 2>&1
errorFiles=(*.error) errorFiles=(*.error)
errorCount=${#errorFiles[@]}
for filename in "${errorFiles[@]}"; do for filename in "${errorFiles[@]}"; do
if [[ -r $filename ]]; then if [[ -r $filename ]]; then
rm "${filename}" rm "${filename}"
...@@ -152,7 +151,6 @@ cleanupFailedCheckFiles() { ...@@ -152,7 +151,6 @@ cleanupFailedCheckFiles() {
done done
statusFiles=(*.status) statusFiles=(*.status)
statusCount=${#statusFiles[@]}
for filename in "${statusFiles[@]}"; do for filename in "${statusFiles[@]}"; do
if [[ -r $filename ]]; then if [[ -r $filename ]]; then
rm "${filename}" rm "${filename}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment