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:
chblodgandchristopher blodgett authored and GitHub committed 2022-03-06 14:57:00 -06:00
1 parent d9bddabbf8
commit 1ebe9d3f47
4 files changed
+11 -4

No files matched your search

+5
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