[PR #14311] [MERGED] install: prevent partial download script execution #40487

Closed
opened 2026-04-23 01:22:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14311
Author: @BruceMacD
Created: 2/18/2026
Status: Merged
Merged: 2/19/2026
Merged by: @BruceMacD

Base: mainHead: brucemacd/script-main


📝 Commits (1)

  • 6e491cb install: prevent partial download script execution

📊 Changes

1 file changed (+7 additions, -0 deletions)

View changed files

📝 scripts/install.sh (+7 -0)

📄 Description

Wrap script in main function so that a truncated partial download doesn't end up executing half a script.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/14311 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 2/18/2026 **Status:** ✅ Merged **Merged:** 2/19/2026 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/script-main` --- ### 📝 Commits (1) - [`6e491cb`](https://github.com/ollama/ollama/commit/6e491cb6c0d86f8452a78a961372b9abc4ab0a5a) install: prevent partial download script execution ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `scripts/install.sh` (+7 -0) </details> ### 📄 Description Wrap script in main function so that a truncated partial download doesn't end up executing half a script. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-23 01:22:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#40487