Skip to content

Commit

Permalink
Capture git tag requirement as variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zfields committed Nov 18, 2019
1 parent b090185 commit 92b38c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/fetch-buildpack
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 92b38c2

Please sign in to comment.