mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-03-31 06:24:01 -04:00
[PR #277] [MERGED] Fix Install button not appearing for VM and tools scripts #309
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/277
Author: @michelroegl-brunner
Created: 11/7/2025
Status: ✅ Merged
Merged: 11/7/2025
Merged by: @michelroegl-brunner
Base:
main← Head:fix/251📝 Commits (2)
2ee5f73Fix Install button not appearing for VM and tools scripts7f1ef91Fix vitest dependency version mismatch📊 Changes
3 files changed (+554 additions, -71 deletions)
View changed files
📝
package-lock.json(+411 -49)📝
package.json(+1 -1)📝
src/server/services/scriptDownloader.js(+142 -21)📄 Description
Problem
When downloading VM scripts or tools scripts (including
tools/addonandtools/pve), only the "Load Script" button appeared, but the "Install" button didn't show up.Solution
checkScriptExiststo preserve subdirectory structure for tools and VM scripts (e.g.,tools/pve/script.shnow correctly checkstools/pve/script.sh)ctExists=truefor tools and VM scripts when their files exist (not just CT scripts)compareScriptContentmethod to JavaScript version (was causing runtime errors)Changes
src/server/services/scriptDownloader.js: UpdatedcheckScriptExistsmethod and addedcompareScriptContentmethodFixes the issue where the Install button was missing after downloading VM or tools scripts.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.