Skip to content

fix: correct variable order in install.sh#28

Merged
thoroc merged 3 commits intomainfrom
fix/install-script-version-order
Feb 7, 2026
Merged

fix: correct variable order in install.sh#28
thoroc merged 3 commits intomainfrom
fix/install-script-version-order

Conversation

@thoroc
Copy link
Owner

@thoroc thoroc commented Feb 7, 2026

Problem

The install script had a variable ordering bug where VERSION was used in ARCHIVE_NAME construction (line 84) before VERSION was actually fetched (line 88), causing the download URL to be malformed.

Solution

Moved the VERSION fetch before the ARCHIVE_NAME construction to ensure the version is available when constructing the download URL.

Testing

Tested locally on macOS/ARM - script now successfully downloads and installs git-mirror v0.4.6.

@thoroc thoroc merged commit 82e1b4a into main Feb 7, 2026
1 check passed
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-copilot Please review this PR focusing on:

  1. Code quality, best practices, and potential bugs
  2. Security vulnerabilities and unsafe patterns
  3. Performance implications
  4. Documentation accuracy and completeness
  5. Test coverage and edge cases

Please provide specific, actionable feedback.

@thoroc thoroc deleted the fix/install-script-version-order branch February 7, 2026 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant