mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-04-25 04:35:50 +03:00
[PR #204] [MERGED] fix/185: normalize script matching to handle underscore vs hyphen differences #272
Labels
No labels
bug
enhancement
enhancement
feature
in progress
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ProxmoxVE-Local#272
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/204
Author: @michelroegl-brunner
Created: 10/20/2025
Status: ✅ Merged
Merged: 10/20/2025
Merged by: @michelroegl-brunner
Base:
main← Head:fix/185📝 Commits (1)
266ff5afix: normalize script matching to handle underscore vs hyphen differences📊 Changes
4 files changed (+40 additions, -6 deletions)
View changed files
📝
src/app/_components/DownloadedScriptsTab.tsx(+14 -3)📝
src/app/_components/ScriptsGrid.tsx(+14 -3)📝
src/server/api/routers/scripts.ts(+10 -0)📝
src/types/script.ts(+2 -0)📄 Description
Problem
PVE Host scripts were showing as 'Not Downloaded' in the Downloaded tab even when they were actually downloaded locally. This occurred because:
pbs_microcode.sh)pbs-microcode)Solution
normalizeIdhelper that converts identifiers to lowercase and replaces non-alphanumeric characters with hyphensinstall_basenamesextracted frominstall_methodsDownloadedScriptsTabandScriptsGridto use normalized comparisonsname,slug, or anyinstall_basenamesTesting
Fixes the issue where PVE Host scripts appeared as 'Not Downloaded' despite being available locally.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.