mirror of
https://github.com/open-webui/pipelines
synced 2025-05-13 00:50:44 +00:00
Merge pull request #96 from karaketir16/patch-1
fix: Invalid URL format, surrounding quotes does not match with regex
This commit is contained in:
commit
53ec4ae8cb
3
start.sh
3
start.sh
@ -53,6 +53,9 @@ download_pipelines() {
|
|||||||
local path=$1
|
local path=$1
|
||||||
local destination=$2
|
local destination=$2
|
||||||
|
|
||||||
|
# Remove any surrounding quotes from the path
|
||||||
|
path=$(echo "$path" | sed 's/^"//;s/"$//')
|
||||||
|
|
||||||
echo "Downloading pipeline files from $path to $destination..."
|
echo "Downloading pipeline files from $path to $destination..."
|
||||||
|
|
||||||
if [[ "$path" =~ ^https://github.com/.*/.*/blob/.* ]]; then
|
if [[ "$path" =~ ^https://github.com/.*/.*/blob/.* ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user