From d48e51c927176601222f792477f7a60eb12ce1e5 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 30 May 2024 19:20:54 -0700 Subject: [PATCH] Update start.sh --- start.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 400b286b..d3e7861a 100755 --- a/start.sh +++ b/start.sh @@ -41,8 +41,12 @@ download_pipelines() { cd "$destination" || exit 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 - echo "Invalid PIPELINES_URLS format." + echo "Invalid URL format: $path" exit 1 fi }