Skip to content

Fix installation scripts for new repo location#6

Merged
PatrickRuddiman merged 1 commit intomainfrom
codex/update-bash-and-powershell-install-scripts
Jun 29, 2025
Merged

Fix installation scripts for new repo location#6
PatrickRuddiman merged 1 commit intomainfrom
codex/update-bash-and-powershell-install-scripts

Conversation

@PatrickRuddiman
Copy link
Owner

Summary

  • update repo URLs in installation scripts
  • adjust asset naming to match release artifacts
  • fix unsupported OS message
  • clean up path updates and wrapper generation
  • add cleanup traps for temporary directories
  • fix style issues in install.sh

Testing

  • shellcheck install-universal.sh install-web.sh install.sh
  • bash -n install-universal.sh install-web.sh install.sh
  • pwsh -NoLogo -NoProfile -Command "Import-Module PSScriptAnalyzer; Invoke-ScriptAnalyzer -Path install-web.ps1 -Severity Error"
  • pwsh -NoLogo -NoProfile -Command "Import-Module PSScriptAnalyzer; Invoke-ScriptAnalyzer -Path install.ps1 -Severity Error"
  • dotnet build Write-Commit.sln
  • bash install-web.sh --version v0.1.3 --install-dir /tmp/writecommit_test
  • bash install-universal.sh --arch linux-x64

https://chatgpt.com/codex/tasks/task_e_6860609831e0832a852f628b84f38cc9

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the installation scripts to reflect the new repo location while also improving asset naming, error messages, and cleanup handling. Key changes include updating repo URLs across bash and PowerShell scripts, unifying asset naming conventions, and adding cleanup traps for temporary directories.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
install.sh Combined the dotnet publish and installation commands for brevity.
install-web.sh Updated repo URL and asset naming; added cleanup traps for temporary dirs.
install-web.ps1 Updated repo URL in usage comments and configuration.
install-universal.sh Updated repo URL and asset naming; added a cleanup trap but also retained an explicit removal of the temporary directory.


# Cleanup
cd - > /dev/null
rm -rf "$TEMP_DIR"
Copy link

Copilot AI Jun 29, 2025

Choose a reason for hiding this comment

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

The explicit removal of the temporary directory is redundant since a cleanup trap is already in place. Removing this duplicate call will simplify the script.

Suggested change
rm -rf "$TEMP_DIR"

Copilot uses AI. Check for mistakes.
@PatrickRuddiman PatrickRuddiman merged commit b49eebd into main Jun 29, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments