Skip to content

Commit c3f6c24

Browse files
committed
feat: Orchestrator - Launchers - HuggingFace - Try installing curl if neither curl nor wget is found
1 parent d68fb12 commit c3f6c24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cloud_pipelines_backend/launchers/huggingface_launchers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,9 @@ def get_exit_code_path() -> str:
237237
elif command -v wget 2>/dev/null; then
238238
wget -q -O - "$url" | sh
239239
else
240-
echo "Error: Neither curl nor wget found." >&2
241-
exit 1
240+
echo "Error: Neither curl nor wget was found. Trying apt-get install" >&2
241+
apt-get update --quiet && apt-get install -y --no-install-recommends --quiet curl
242+
curl -s -L "$url" | sh
242243
fi
243244
244245
export PATH="$HOME/.local/bin:$PATH"

0 commit comments

Comments
 (0)