Skip to content

Commit 1598d72

Browse files
author
Matthew Fisher
committed
fix(builder): strip single quotes from BUILDPACK_URL
The builder sends BUILDPACK_URL as a quote-escaped string. Unfortunately, this also throws literal single quotes into the string. Stripping them from BUILDPACK_URL before further stripping seems to fix the issue.
1 parent 17ccf8a commit 1598d72

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • builder/image/slugbuilder/builder

builder/image/slugbuilder/builder/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ selected_buildpack=
7777
if [[ -n "$BUILDPACK_URL" ]]; then
7878
echo_title "Fetching custom buildpack"
7979

80+
# FIXME: strip single quotes coming from the builder
81+
BUILDPACK_URL=$(echo $BUILDPACK_URL | tr -d "'")
82+
8083
buildpack="$buildpack_root/custom"
8184
rm -fr "$buildpack"
8285

0 commit comments

Comments
 (0)