mirror of https://github.com/k3s-io/k3s
fix shellcheck in pkg/util/verify-util-pkg.sh
parent
5733241f7a
commit
0e78dd2d17
|
@ -120,7 +120,6 @@
|
||||||
./hack/verify-test-owners.sh
|
./hack/verify-test-owners.sh
|
||||||
./hack/verify-typecheck.sh
|
./hack/verify-typecheck.sh
|
||||||
./pkg/kubectl/cmd/edit/testdata/record_testcase.sh
|
./pkg/kubectl/cmd/edit/testdata/record_testcase.sh
|
||||||
./pkg/util/verify-util-pkg.sh
|
|
||||||
./test/cmd/apply.sh
|
./test/cmd/apply.sh
|
||||||
./test/cmd/apps.sh
|
./test/cmd/apps.sh
|
||||||
./test/cmd/authorization.sh
|
./test/cmd/authorization.sh
|
||||||
|
|
|
@ -21,7 +21,7 @@ set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
BASH_DIR=$(dirname "${BASH_SOURCE}")
|
BASH_DIR=$(dirname "${BASH_SOURCE[0]}")
|
||||||
|
|
||||||
find_go_files() {
|
find_go_files() {
|
||||||
find . -maxdepth 1 -not \( \
|
find . -maxdepth 1 -not \( \
|
||||||
|
@ -34,8 +34,8 @@ find_go_files() {
|
||||||
ret=0
|
ret=0
|
||||||
|
|
||||||
pushd "${BASH_DIR}" > /dev/null
|
pushd "${BASH_DIR}" > /dev/null
|
||||||
for path in `find_go_files`; do
|
for path in $(find_go_files); do
|
||||||
file=$(basename $path)
|
file=$(basename "$path")
|
||||||
echo "Found pkg/util/${file}, but should be moved into util sub-pkgs." 1>&2
|
echo "Found pkg/util/${file}, but should be moved into util sub-pkgs." 1>&2
|
||||||
ret=1
|
ret=1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue