[PR #11642] [CLOSED] fix(immich): improve version comparison for maintenance mode check with sort -V #9645

Closed
opened 2026-02-26 17:31:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/11642
Author: @marianwolf
Created: 2/6/2026
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • 0923bf5 fix(immich): improve version comparison for maintenance mode check with sort -V

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 ct/immich.sh (+2 -1)

📄 Description

I found another way to compare the versions, namely with sort -V.

✍️ Description

Previously, the script was based on the “insert previous” method, e.g., manual string comparison or simple sorting, which could lead to incorrect results with multi-digit version segments (e.g., treating 1.10 as smaller than 1.2). With sort -V, the problem should be fixed.

I detected the error with an AI reviewer.

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/11642 **Author:** [@marianwolf](https://github.com/marianwolf) **Created:** 2/6/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`0923bf5`](https://github.com/community-scripts/ProxmoxVE/commit/0923bf5216d445e6540bc182b64a44900b4da744) fix(immich): improve version comparison for maintenance mode check with sort -V ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `ct/immich.sh` (+2 -1) </details> ### 📄 Description I found another way to compare the versions, namely with sort -V. ## ✍️ Description Previously, the script was based on the “insert previous” method, e.g., manual string comparison or simple sorting, which could lead to incorrect results with multi-digit version segments (e.g., treating 1.10 as smaller than 1.2). With sort -V, the problem should be fixed. ## 🔗 Related Issue I detected the error with an AI reviewer. ## ✅ Prerequisites (**X** in brackets) - [x] **Self-review completed** – Code follows project standards. - [ ] **Tested thoroughly** – Changes work as expected. - [x] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [ ] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [ ] ✨ **New feature** – Adds new, non-breaking functionality. - [x] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [x] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 17:31:12 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#9645
No description provided.