Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Changed method to determine whether to download unstable or release l…
Browse files Browse the repository at this point in the history
…attice tarball.

  + Uses egrep with regex pattern to look for `git describe` format.

[Finishes #87262154]

Signed-off-by: David Wadden <[email protected]>
  • Loading branch information
chelseatroy authored and davidwadden committed Mar 12, 2015
1 parent 8d9823a commit b1c8196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/local-scripts/download-lattice-tar
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ else

lattice_tar_version=$(cat $LATTICE_VERSION_FILE_PATH)

if grep "-" $LATTICE_VERSION_FILE_PATH; then #it's unstable, released versions have hyphenless tag names as the git describe.
if egrep '\-\d+-g[0-9a-fA-F]{7,10}$' $LATTICE_VERSION_FILE_PATH; then # unstable versions match `git describe` format
lattice_download_url="https://s3-us-west-2.amazonaws.com/lattice/unstable/$lattice_tar_version/lattice.tgz"
else
lattice_download_url="https://s3-us-west-2.amazonaws.com/lattice/releases/$lattice_tar_version/lattice.tgz"
Expand Down

0 comments on commit b1c8196

Please sign in to comment.