fix: normalize script matching to handle underscore vs hyphen differences

- Add normalizeId helper to compare local filenames with script slugs/names
- Include install_basenames from install_methods for robust matching
- Fix false 'Not Downloaded' status for PVE Host scripts like 'PVE LXC Execute Command'
- Update DownloadedScriptsTab and ScriptsGrid to use normalized comparisons
- Resolves issue where scripts with underscores in filenames (e.g., pbs_microcode.sh)
  weren't matching JSON slugs with hyphens (e.g., pbs-microcode)
This commit is contained in:
auto-bot
2025-10-20 15:59:45 +02:00
parent adccee027c
commit 266ff5a79f
4 changed files with 40 additions and 6 deletions

View File

@@ -60,6 +60,8 @@ export interface ScriptCard {
os?: string;
version?: string;
interface_port?: number | null;
// Optional: basenames of install scripts (without extension)
install_basenames?: string[];
}
export interface GitHubFile {