mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-06-09 16:41:57 -04:00
[PR #204] [MERGED] fix/185: normalize script matching to handle underscore vs hyphen differences #252
Reference in New Issue
Block a user
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.