Skip to content

Commit 4ceebbd

Browse files
Update CNB tools
1 parent be6ac0d commit 4ceebbd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/package.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ if [[ $1 == "-c" ]]; then #package as cached
1515
fi
1616

1717
eval "$args $full_path"
18+
19+
if [[ -n "$BP_REWRITE_HOST" ]]; then
20+
sed -i '' -e "s|^uri = \"https:\/\/buildpacks\.cloudfoundry\.org\(.*\)\"$|uri = \"http://$BP_REWRITE_HOST\1\"|g" "$full_path/buildpack.toml"
21+
fi

0 commit comments

Comments
 (0)