mirror of
https://github.com/open-webui/pipelines
synced 2025-06-04 03:47:04 +00:00
fix: surrounding quotes does not match with regex
surrounding quotes does not match with regex in `start.sh` download.
This commit is contained in:
parent
4992208bb8
commit
6bab4f3ec7
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