Ibotta / sopstool

SOPS multi-file wrapper
Apache License 2.0
38 stars 4 forks source link

add version check to sopsinstall #40

Closed onyxraven closed 4 years ago

onyxraven commented 4 years ago

Background

SOPS upstream changed their executable naming in v3.5.0. We were relying on a specific format (sops-${VERSION}.${OS}) which changed to include a 'v' prefix (sops-v${VERSION}.${OS}).

This PR adds code to the downloader to check the version number in a relatively safe way, and if it is 3.5.0 or higher, it will use the v prefix.

Versioning

None necessary, this is a utility addon not related to the binary.

Tasks