bin/fmt: Fix shellcheck issue (#4438)

Signed-off-by: Joakim Roubert <joakimr@axis.com>
This commit is contained in:
Joakim Roubert 2020-05-19 23:49:28 +02:00 committed by GitHub
parent 6f1654a65d
commit 30ba9a1261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -80,7 +80,6 @@ jobs:
run: |
find ./bin -type f \
! -name docker-build-proxy \
! -name fmt \
! -name lint \
! -name _log.sh \
! -name minikube-start-hyperv.bat \

View File

@ -8,7 +8,7 @@ dirs=$(go list -f \{\{.Dir\}\} ./... | grep -v controller/gen)
# go list will list all subdirectories and goimports acts recursively. This
# results in certain files being reported multiple time. Therefore, we must
# dedup them.
files=$(bin/goimports -l $dirs | sort -u)
files=$(bin/goimports -l "$dirs" | sort -u)
if [ -n "$files" ]; then
for file in $files; do