Merge pull request #96 from karaketir16/patch-1

fix: Invalid URL format, surrounding quotes does not match with regex
This commit is contained in:
Timothy Jaeryang Baek 2024-06-17 10:42:24 -07:00 committed by GitHub
commit 53ec4ae8cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,6 +53,9 @@ download_pipelines() {
local path=$1
local destination=$2
# Remove any surrounding quotes from the path
path=$(echo "$path" | sed 's/^"//;s/"$//')
echo "Downloading pipeline files from $path to $destination..."
if [[ "$path" =~ ^https://github.com/.*/.*/blob/.* ]]; then