fix: Use resolved absolute path for script execution

- Fix script execution by using resolvedPath instead of scriptPath
- This ensures the correct absolute path is used when spawning bash
- Previously was looking for scripts/ct/script.sh inside scripts/ directory
- Now correctly uses /root/Dev/PVESciptslocal/scripts/ct/script.sh
This commit is contained in:
Michel Roegl-Brunner
2025-09-10 15:06:40 +02:00
parent c60e5e6a1d
commit c739196dc2

View File

@@ -136,7 +136,7 @@ class ScriptExecutionHandler {
} }
// Start script execution with pty for proper TTY support // Start script execution with pty for proper TTY support
const childProcess = ptySpawn('bash', [scriptPath], { const childProcess = ptySpawn('bash', [resolvedPath], {
cwd: scriptsDir, cwd: scriptsDir,
name: 'xterm-256color', name: 'xterm-256color',
cols: 80, cols: 80,