Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improved version update script with argument validation and cros… #6742

Open
wants to merge 1 commit into
base: stable
Choose a base branch
from

Conversation

mdqst
Copy link

@mdqst mdqst commented Dec 26, 2024

This update improves the version change script by implementing several important fixes:

  1. Argument validation: Added a check to ensure the script receives exactly two arguments (current and new version), preventing errors when running the script without the required inputs.

  2. Quoting variable expansions: Ensured all variables (like $1, $FROM, and $TO) are quoted to prevent issues when the values contain spaces or special characters.

  3. Cross-platform compatibility: Updated the sed command to handle in-place editing across different platforms, ensuring compatibility with both Linux and macOS.

These changes make the script more robust, reliable, and easier to use across different environments.

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