From dbd896722b910fe2f041b4d9a76b2ab31b407e8d Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Sun, 17 Jan 2021 15:51:53 +0100 Subject: [PATCH] verify-boilerplate.sh: fix path to script 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 --- verify-boilerplate.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/verify-boilerplate.sh b/verify-boilerplate.sh index 0781b0500..815939574 100755 --- a/verify-boilerplate.sh +++ b/verify-boilerplate.sh @@ -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)