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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user