diff --git a/content/docs/for-buildpack-authors/tutorials/basic-buildpack/07_make-buildpack-configurable.md b/content/docs/for-buildpack-authors/tutorials/basic-buildpack/07_make-buildpack-configurable.md index b6969a88e..dc0c4fa4a 100644 --- a/content/docs/for-buildpack-authors/tutorials/basic-buildpack/07_make-buildpack-configurable.md +++ b/content/docs/for-buildpack-authors/tutorials/basic-buildpack/07_make-buildpack-configurable.md @@ -27,15 +27,16 @@ if [[ ! -f package.json ]]; then fi # ======= ADDED ======= -plan=${CNB_BUILD_PLAN_PATH} version=3.1.3 if [[ -f .node-js-version ]]; then - version=$(cat .node-js-version | tr -d '[:space:]') + version=$(< .node-js-version tr -d '[:space:]') fi -echo "provides = [{ name = \"node-js\" }]" > "$plan" -echo "requires = [{ name = \"node-js\", metadata = { version = \"$version\" } }]" >> "$plan" +cat > "${CNB_BUILD_PLAN_PATH}" << EOL +provides = [{ name = "node-js" }] +requires = [{ name = "node-js", metadata = { version = "$version" } }] +EOL # ======= /ADDED ======= ```