Skip to content

Commit

Permalink
verify-boilerplate.sh: fix path to script
Browse files Browse the repository at this point in the history
The previous path was wrong because it was relative to the directory
being checked, not the release-tools directory:

csi-driver-host-path$ ./release-tools/verify-boilerplate.sh
Verifying boilerplate
./release-tools/verify-boilerplate.sh: line 37: /nvme/gopath/src/github.com/kubernetes-csi/csi-driver-host-path/boilerplate/boilerplate.py: No such file or directory
Done
  • Loading branch information
pohly committed Jan 17, 2021
1 parent 9289fd1 commit dbd8967
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions verify-boilerplate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ TOOLS="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
# Directory to check. Default is the parent of the tools themselves.
ROOT="${1:-${TOOLS}/..}"

boilerDir="${ROOT}/boilerplate"
boiler="${boilerDir}/boilerplate.py"
boiler="${TOOLS}/boilerplate/boilerplate.py"

mapfile -t files_need_boilerplate < <("${boiler}" --rootdir="${ROOT}" --verbose)

Expand Down

0 comments on commit dbd8967

Please sign in to comment.