fix: Remove unnecessary blank lines in version update scripts
This commit is contained in:
parent
6ff3109223
commit
1a78a1f1c9
3 changed files with 6 additions and 6 deletions
|
|
@ -97,7 +97,7 @@ Invalid examples:
|
||||||
```bash
|
```bash
|
||||||
# On Windows
|
# On Windows
|
||||||
.\update_version.ps1 0.2.0
|
.\update_version.ps1 0.2.0
|
||||||
|
|
||||||
# On Linux/macOS
|
# On Linux/macOS
|
||||||
./update_version.sh 0.2.0
|
./update_version.sh 0.2.0
|
||||||
```
|
```
|
||||||
|
|
@ -106,10 +106,10 @@ Invalid examples:
|
||||||
```bash
|
```bash
|
||||||
# Using Python
|
# Using Python
|
||||||
python build_wheel.py
|
python build_wheel.py
|
||||||
|
|
||||||
# Or PowerShell
|
# Or PowerShell
|
||||||
.\build_wheel.ps1
|
.\build_wheel.ps1
|
||||||
|
|
||||||
# Or Bash
|
# Or Bash
|
||||||
./build_wheel.sh
|
./build_wheel.sh
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ $projectRoot = Split-Path -Parent $PSCommandPath
|
||||||
$pyprojectPath = Join-Path $projectRoot "pyproject.toml"
|
$pyprojectPath = Join-Path $projectRoot "pyproject.toml"
|
||||||
$initPath = Join-Path (Join-Path $projectRoot "elytra_client") "__init__.py"
|
$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 "Updating Elytra PIM Client to version $Version"
|
||||||
Write-Host "======================================================================"
|
Write-Host "======================================================================"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ update_file() {
|
||||||
# Check if content would change
|
# Check if content would change
|
||||||
local content
|
local content
|
||||||
content=$(cat "$file_path")
|
content=$(cat "$file_path")
|
||||||
|
|
||||||
# Use sed to update the file (handles both macOS and Linux)
|
# Use sed to update the file (handles both macOS and Linux)
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
# macOS requires -i '' for in-place editing
|
# macOS requires -i '' for in-place editing
|
||||||
|
|
@ -52,7 +52,7 @@ update_file() {
|
||||||
|
|
||||||
local new_content
|
local new_content
|
||||||
new_content=$(cat "$file_path")
|
new_content=$(cat "$file_path")
|
||||||
|
|
||||||
if [[ "$content" == "$new_content" ]]; then
|
if [[ "$content" == "$new_content" ]]; then
|
||||||
echo -e "${GREEN}✓ $(basename "$file_path") already up-to-date${NC}"
|
echo -e "${GREEN}✓ $(basename "$file_path") already up-to-date${NC}"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue