Minor fixes identified through shellcheck and other tools (#350)

* fix whitespace

* fix spelling

* fix whitespace

* unify headers of tests

* fix some issues in tests, identified by shellcheck

* fix bash completions

bash completion files are not supposed to be executable

* fix some issues identified by shellcheck

Co-authored-by: Ali Karbassi <ali@karbassi.com>
This commit is contained in:
a1346054
2021-08-09 20:03:49 +00:00
committed by GitHub
parent ee94a3fac5
commit 2d70a0aadf
40 changed files with 88 additions and 119 deletions

View File

@@ -15,7 +15,7 @@ case "$1" in
esac
if test -n "$color"; then
say_color () {
say_color() {
(
export TERM
case "$1" in
@@ -67,15 +67,15 @@ do
'')
continue ;;
fixed)
fixed=$(($fixed + $value)) ;;
fixed=$((fixed + $value)) ;;
success)
success=$(($success + $value)) ;;
success=$((success + $value)) ;;
failed)
failed=$(($failed + $value)) ;;
failed=$((failed + $value)) ;;
broken)
broken=$(($broken + $value)) ;;
broken=$((broken + $value)) ;;
total)
total=$(($total + $value)) ;;
total=$((total + $value)) ;;
esac
done <"$file"
done