Support FTP servers for file downloads (#850)

This commit is contained in:
Krzysztof Zdulski
2021-04-28 23:44:39 +02:00
committed by GitHub
parent 7164d2b885
commit 3261fbd7e9
2 changed files with 3 additions and 3 deletions

View File

@@ -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