tests: run mvdan/shfmt on test runs

While I do not agree with _every_ style change, this will force Dokku to have consistent formatting across all shell scripts, which is arguably a Good Thing™.

The command used to reprocess everything is:

```shell
shfmt -l -bn -ci -i 2 -w .
```
This commit is contained in:
Jose Diaz-Gonzalez
2019-01-07 01:04:17 -05:00
parent fb7c73a7e3
commit 86795ddacc
283 changed files with 1536 additions and 1018 deletions

View File

@@ -1,7 +1,8 @@
#!/usr/bin/env bash
is_number() {
local NUMBER=$1; local NUM_RE='^[1-4]+$'
local NUMBER=$1
local NUM_RE='^[1-4]+$'
if [[ $NUMBER =~ $NUM_RE ]]; then
return 0
else
@@ -33,6 +34,6 @@ for test in $TESTS; do
fi
endtest=$(date +%s)
testruntime=$((endtest-starttest))
testruntime=$((endtest - starttest))
echo "individual runtime: $(date -u -d @${testruntime} +"%T")"
done