adding major version for pufferfish (#1405)

* adding major version for pufferfish

* fixing test as well as fixing a quote that was added due to linter recommendation

* Changing get major version to using a simple cut command

Co-authored-by: christopher blodgett <christopher.blodgett@gmail.com>
This commit is contained in:
chblodg
2022-03-06 12:57:00 -08:00
committed by GitHub
parent d9bddabbf8
commit 1ebe9d3f47
4 changed files with 11 additions and 4 deletions

View File

@@ -8,6 +8,11 @@ function join_by() {
printf "%s" "${@/#/$d}"
}
function get_major_version() {
version=$1
echo "$version" | cut -d. -f 1-2
}
function isURL() {
local value=$1