Skip to content

Commit b25f00e

Browse files
build(site): ensure make docs works with spaces in path
1 parent 20fea94 commit b25f00e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hack/api-docs/generate.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ GOPATH=${GOPATH:-$(go env GOPATH)}
2525
GOBIN=${GOBIN:-$(go env GOBIN)}
2626
GOBIN=${GOBIN:-${GOPATH}/bin}
2727

28-
readonly HERE=$(cd $(dirname $0) && pwd)
29-
readonly REPO=$(cd ${HERE}/../.. && pwd)
28+
readonly HERE=$(cd "$(dirname $0)" && pwd)
29+
readonly REPO=$(cd "${HERE}/../.." && pwd)
3030

3131
gendoc::build() {
3232
go install github.com/ahmetb/gen-crd-api-reference-docs
@@ -37,8 +37,8 @@ gendoc::exec() {
3737
local readonly confdir="${REPO}/hack/api-docs"
3838

3939
${GOBIN}/gen-crd-api-reference-docs \
40-
-template-dir ${confdir} \
41-
-config ${confdir}/config.json \
40+
-template-dir "${confdir}" \
41+
-config "${confdir}/config.json" \
4242
"$@"
4343
}
4444

0 commit comments

Comments
 (0)