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:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user