mirror of
https://github.com/open-webui/pipelines
synced 2025-05-12 08:30:43 +00:00
Update start.sh
This commit is contained in:
parent
ab0ff071c2
commit
d48e51c927
6
start.sh
6
start.sh
@ -41,8 +41,12 @@ download_pipelines() {
|
|||||||
cd "$destination" || exit
|
cd "$destination" || exit
|
||||||
git sparse-checkout set "$subdir"
|
git sparse-checkout set "$subdir"
|
||||||
)
|
)
|
||||||
|
elif [[ "$path" =~ \.py$ ]]; then
|
||||||
|
# It's a single .py file (but not from GitHub)
|
||||||
|
dest_file=$(basename "$path")
|
||||||
|
curl -L "$path" -o "$destination/$dest_file"
|
||||||
else
|
else
|
||||||
echo "Invalid PIPELINES_URLS format."
|
echo "Invalid URL format: $path"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user