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,11 +1,13 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
docker_args() {
declare desc="docker args plugin trigger"
local trigger="$0"
local STDIN=$(cat)
local APP="$1"; local IMAGE_SOURCE_TYPE="$2"
local APP="$1"
local IMAGE_SOURCE_TYPE="$2"
case "$0" in
*docker-args-build)
@@ -41,26 +43,26 @@ docker_args() {
case "$IMAGE_SOURCE_TYPE" in
dockerfile)
case "$line" in
--link*|-v*)
--link* | -v*)
continue
;;
*)
local output="$output $line"
;;
esac
esac
;;
herokuish)
case "$line" in
--file*|--build-args*)
--file* | --build-args*)
continue
;;
*)
local output="$output $line"
;;
esac
esac
;;
*)
@@ -69,7 +71,7 @@ docker_args() {
esac
;;
esac
done < "$PHASE_FILE_PATH"
done <"$PHASE_FILE_PATH"
fi
echo -n "$STDIN$output"