mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-17 07:03:57 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user