mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-07-18 06:24:54 +00:00
generic-packs: support oci:// references via install-oci-pack (#4164)
This commit is contained in:
@@ -173,6 +173,12 @@ function isURL() {
|
||||
[[ $value =~ ^(https?|ftp):// ]]
|
||||
}
|
||||
|
||||
function isOCIRef() {
|
||||
local value=$1
|
||||
|
||||
[[ $value =~ ^oci:// ]]
|
||||
}
|
||||
|
||||
function isValidFileURL() {
|
||||
suffix=${1:?Missing required suffix arg}
|
||||
url=${2:?Missing required url arg}
|
||||
|
||||
Reference in New Issue
Block a user