diff --git a/scripts/fetch-buildpack b/scripts/fetch-buildpack index 2e0758a5ca..5284fb5701 100755 --- a/scripts/fetch-buildpack +++ b/scripts/fetch-buildpack @@ -1,4 +1,5 @@ -BUILDPACK_FILES=$(mkdir buildpack && wget https://api.github.com/repos/particle-iot/firmware-buildpack-builder/tarball/ch39834/workbench-installer -O - | tar -xvz -C buildpack --strip-components 1) +BUILDPACK_BUILDER_VERSION_TAG="0.0.9" +BUILDPACK_FILES=$(mkdir buildpack && wget https://api.github.com/repos/particle-iot/firmware-buildpack-builder/tarball/${BUILDPACK_BUILDER_VERSION_TAG} -O - | tar -xvz -C buildpack --strip-components 1) SHORT_REF=$(echo "$BUILDPACK_FILES" | head -n1 | cut -d '/' -f 1 | rev | cut -d '-' -f 1 | rev) mkdir buildpack/.git echo "${SHORT_REF}" > buildpack/.git/short_ref