diff --git a/UPDATE_VERSION.md b/UPDATE_VERSION.md index 53449be..4931d9e 100644 --- a/UPDATE_VERSION.md +++ b/UPDATE_VERSION.md @@ -97,7 +97,7 @@ Invalid examples: ```bash # On Windows .\update_version.ps1 0.2.0 - + # On Linux/macOS ./update_version.sh 0.2.0 ``` @@ -106,10 +106,10 @@ Invalid examples: ```bash # Using Python python build_wheel.py - + # Or PowerShell .\build_wheel.ps1 - + # Or Bash ./build_wheel.sh ``` diff --git a/update_version.ps1 b/update_version.ps1 index ed9c86e..1d4d190 100644 --- a/update_version.ps1 +++ b/update_version.ps1 @@ -41,7 +41,7 @@ $projectRoot = Split-Path -Parent $PSCommandPath $pyprojectPath = Join-Path $projectRoot "pyproject.toml" $initPath = Join-Path (Join-Path $projectRoot "elytra_client") "__init__.py" -Write-Host "======================================================================" +Write-Host "======================================================================" Write-Host "Updating Elytra PIM Client to version $Version" Write-Host "======================================================================" diff --git a/update_version.sh b/update_version.sh index 6855c34..be188b2 100644 --- a/update_version.sh +++ b/update_version.sh @@ -40,7 +40,7 @@ update_file() { # Check if content would change local content content=$(cat "$file_path") - + # Use sed to update the file (handles both macOS and Linux) if [[ "$OSTYPE" == "darwin"* ]]; then # macOS requires -i '' for in-place editing @@ -52,7 +52,7 @@ update_file() { local new_content new_content=$(cat "$file_path") - + if [[ "$content" == "$new_content" ]]; then echo -e "${GREEN}✓ $(basename "$file_path") already up-to-date${NC}" else