mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-04-18 03:28:51 +00:00
Support FTP servers for file downloads (#850)
This commit is contained in:
committed by
GitHub
parent
7164d2b885
commit
3261fbd7e9
@@ -11,7 +11,7 @@ function join_by() {
|
||||
function isURL() {
|
||||
local value=$1
|
||||
|
||||
if [[ ${value:0:8} == "https://" || ${value:0:7} == "http://" ]]; then
|
||||
if [[ ${value:0:8} == "https://" || ${value:0:7} == "http://" || ${value:0:6} == "ftp://" ]]; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user